[vlc-commits] libvlc: Let the media source provider outlive the media library

Hugo Beauzée-Luyssen git at videolan.org
Mon Jun 22 15:24:10 CEST 2020


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Oct 28 16:09:02 2019 +0100| [c3cc9c9eb0d85aaec1d2d45f5bab04bb8c949d46] | committer: Hugo Beauzée-Luyssen

libvlc: Let the media source provider outlive the media library

In order for the media library to be able to use it

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c3cc9c9eb0d85aaec1d2d45f5bab04bb8c949d46
---

 src/libvlc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 53828343c8..c1dcde276d 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -350,9 +350,6 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     if ( priv->p_thumbnailer )
         vlc_thumbnailer_Release( priv->p_thumbnailer );
 
-    if( priv->media_source_provider )
-        vlc_media_source_provider_Delete( priv->media_source_provider );
-
     libvlc_InternalDialogClean( p_libvlc );
     libvlc_InternalKeystoreClean( p_libvlc );
 
@@ -385,6 +382,9 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     if ( priv->p_media_library )
         libvlc_MlRelease( priv->p_media_library );
 
+    if( priv->media_source_provider )
+        vlc_media_source_provider_Delete( priv->media_source_provider );
+
     libvlc_InternalActionsClean( p_libvlc );
 
     /* Save the configuration */



More information about the vlc-commits mailing list