[vlc-devel] [PATCH 1/2] libvlc: raise a title changed event if the title changes
Felix Paul Kühne
fkuehne at videolan.org
Tue Nov 24 16:58:38 CET 2015
---
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
More information about the vlc-devel
mailing list