From 73605cb33ddaaea6f6cec3afa224fe712374125e Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 15 Mar 2012 12:59:38 +0000 Subject: [PATCH] playsink: send navigation event to the sink as a fallback When the video sink is a fakesink, which does not implement the navigation interface, playsink will drop the navigation command. In this case, send to the video sink as a fallback. It breaks the interface abstraction, but is better than just dropping the navigation event. --- gst/playback/gstplaysink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 0bc70ac..a68b6ae 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -4295,6 +4295,10 @@ gst_play_sink_navigation_send_event (GstNavigation * navigation, gst_navigation_send_event (GST_NAVIGATION (nav), structure); structure = NULL; gst_object_unref (nav); + } else { + GstEvent *event = gst_event_new_navigation (structure); + structure = NULL; + gst_element_send_event (GST_ELEMENT (bin), event); } gst_object_unref (bin); -- 2.7.4