[vlc-commits] lib: media: always propagate media_list end event
Thomas Guillem
git at videolan.org
Tue Nov 10 11:35:36 CET 2020
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 9 15:08:47 2020 +0100| [75847c457cff73ad97e9e2713244ff82becb27fd] | 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.
(cherry picked from commit ff5089b94f342b3f22364a389d69921b24f046d2)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=75847c457cff73ad97e9e2713244ff82becb27fd
---
lib/media.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lib/media.c b/lib/media.c
index 54875d6a0e..c780487f5d 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -272,8 +272,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 )
{
@@ -282,7 +280,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