[vlc-commits] lib: media: always propagate media_list end event

Thomas Guillem git at videolan.org
Tue Nov 10 10:45:51 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov  9 15:08:47 2020 +0100| [ff5089b94f342b3f22364a389d69921b24f046d2] | committer: Thomas Guillem

lib: media: always propagate media_list end event

Users only listening on the medialist events were not notified when the
media parsing failed.

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

 lib/media.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/media.c b/lib/media.c
index 2175c04b98..7881e18f2b 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -357,8 +357,6 @@ static void send_parsed_changed( libvlc_media_t *p_md,
 
     vlc_mutex_unlock( &p_md->parsed_lock );
 
-    if( new_status == libvlc_media_parsed_status_done )
-    {
         libvlc_media_list_t *p_subitems = media_get_subitems( p_md, false );
         if( p_subitems != NULL )
         {
@@ -367,7 +365,6 @@ static void send_parsed_changed( libvlc_media_t *p_md,
             libvlc_media_list_internal_end_reached( p_subitems );
             libvlc_media_list_unlock( p_subitems );
         }
-    }
 
     /* Construct the event */
     event.type = libvlc_MediaParsedChanged;



More information about the vlc-commits mailing list