[vlc-commits] libvlc: raise a title changed event if the title changes
Felix Paul Kühne
git at videolan.org
Tue Dec 1 14:09:37 CET 2015
vlc/vlc-2.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Nov 24 16:29:48 2015 +0100| [116381a087691a545c870570d70f4f551c130307] | committer: Jean-Baptiste Kempf
libvlc: raise a title changed event if the title changes
(cherry picked from commit 0584253f87bd897237744e9c18623a9465d922a6)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=116381a087691a545c870570d70f4f551c130307
---
lib/media_player.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/media_player.c b/lib/media_player.c
index b94b723..8e2d161 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -355,6 +355,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;
}
More information about the vlc-commits
mailing list