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.
This commit is contained in:
Vincent Penquerc'h 2012-03-15 12:59:38 +00:00
parent 87a9e5634e
commit 73605cb33d

View file

@ -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);