[vlc-devel] [PATCH 1/2] libvlc: raise a title changed event if the title changes
Jean-Baptiste Kempf
jb at videolan.org
Wed Nov 25 11:50:52 CET 2015
Both LGTM.
On 24 Nov, Felix Paul Kühne wrote :
> ---
> lib/media_player.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/lib/media_player.c b/lib/media_player.c
> index d862926..cdbe432 100644
> --- a/lib/media_player.c
> +++ b/lib/media_player.c
> @@ -366,6 +366,12 @@ input_event_changed( vlc_object_t * p_this, char const * psz_cmd,
> event.u.media_player_vout.new_count = i_vout;
> libvlc_event_send( p_mi->p_event_manager, &event );
> }
> + else if ( newval.i_int == INPUT_EVENT_TITLE )
> + {
> + event.type = libvlc_MediaPlayerTitleChanged;
> + event.u.media_player_title_changed.new_title = var_GetInteger( p_input, "title" );
> + libvlc_event_send( p_mi->p_event_manager, &event );
> + }
>
> return VLC_SUCCESS;
> }
> --
> 2.6.0
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list