mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
87a9e5634e
commit
73605cb33d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue