[vlc-commits] Use new libvlc media API

Hugo Beauzée-Luyssen git at videolan.org
Wed Jun 22 06:34:45 UTC 2022


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jun 21 16:07:15 2022 +0200| [737bf3b757d8bada84699306fd148ae45fa01627] | committer: Hugo Beauzée-Luyssen

Use new libvlc media API

> https://code.videolan.org/videolan/npapi-vlc/commit/737bf3b757d8bada84699306fd148ae45fa01627
---

 common/vlc_player.cpp | 4 ++--
 vlcpp                 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/vlc_player.cpp b/common/vlc_player.cpp
index 500f48c..77c84e6 100644
--- a/common/vlc_player.cpp
+++ b/common/vlc_player.cpp
@@ -57,7 +57,7 @@ int vlc_player::add_item(const char * mrl, unsigned int optc, const char **optv)
 {
     VLC::Media media;
     try {
-        media = VLC::Media( _libvlc_instance, mrl, VLC::Media::FromLocation );
+        media = VLC::Media( mrl, VLC::Media::FromLocation );
     }
     catch ( std::runtime_error& ) {
         return -1;
@@ -123,7 +123,7 @@ int vlc_player::preparse_item_sync(unsigned int idx, int options, unsigned int t
         SetEvent( barrier );
     });
 
-    media->parseWithOptions( VLC::Media::ParseFlags( options ), timeout );
+    media->parseRequest( _libvlc_instance, VLC::Media::ParseFlags( options ), timeout );
 
     DWORD waitResult = WaitForSingleObject( barrier, INFINITE );
     switch ( waitResult ) {
diff --git a/vlcpp b/vlcpp
index 42b58a1..0c7d396 160000
--- a/vlcpp
+++ b/vlcpp
@@ -1 +1 @@
-Subproject commit 42b58a17ab8aa0e1d30ec358d03d5ba6ca32efb7
+Subproject commit 0c7d3968010f1b27b36e78c11e07e4d7f6fe756b



More information about the vlc-commits mailing list