[vlc-devel] [PATCH 2/9] libvlc: Let the media source provider outlive the media library

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Jun 18 17:40:16 CEST 2020


In order for the media library to be able to use it
---
 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 */
-- 
2.20.1



More information about the vlc-devel mailing list