Skip to content

Commit

Permalink
fix(media): remove instance from media functions according to libvlc …
Browse files Browse the repository at this point in the history
…changes
  • Loading branch information
aa-bamboo committed Jun 24, 2022
1 parent c87ef0f commit aaf18e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ void Media::initMedia(const QString &location, bool localFile, Instance *instanc
if (localFile) {
loc = QDir::toNativeSeparators(loc);

m_vlcMedia = libvlc_media_new_path(instance->core(), loc.toUtf8().data());
m_vlcMedia = libvlc_media_new_path(loc.toUtf8().data());
} else {
m_vlcMedia = libvlc_media_new_location(instance->core(), loc.toUtf8().data());
m_vlcMedia = libvlc_media_new_location(loc.toUtf8().data());
}

m_vlcEvents = libvlc_media_event_manager(m_vlcMedia);
Expand Down

0 comments on commit aaf18e3

Please sign in to comment.