[vlc-devel] [PATCH 1/2] lib: media: always propagate media_list end event
Thomas Guillem
thomas at gllm.fr
Mon Nov 9 15:15:00 CET 2020
This need to be backported into VLC 3.0.
On Mon, Nov 9, 2020, at 15:13, Thomas Guillem wrote:
> Users only listening on the medialist events were not notified when the
> media parsing failed.
> ---
> 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;
> --
> 2.28.0
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list