mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
xvimagesink: Post unhandled navigation events on the bus
https://bugzilla.gnome.org/show_bug.cgi?id=747245
This commit is contained in:
parent
01e2a2152d
commit
c90a3ac468
1 changed files with 11 additions and 2 deletions
|
@ -1127,9 +1127,10 @@ gst_xvimagesink_navigation_send_event (GstNavigation * navigation,
|
||||||
{
|
{
|
||||||
GstXvImageSink *xvimagesink = GST_XVIMAGESINK (navigation);
|
GstXvImageSink *xvimagesink = GST_XVIMAGESINK (navigation);
|
||||||
GstPad *peer;
|
GstPad *peer;
|
||||||
|
gboolean handled = FALSE;
|
||||||
|
GstEvent *event = NULL;
|
||||||
|
|
||||||
if ((peer = gst_pad_get_peer (GST_VIDEO_SINK_PAD (xvimagesink)))) {
|
if ((peer = gst_pad_get_peer (GST_VIDEO_SINK_PAD (xvimagesink)))) {
|
||||||
GstEvent *event;
|
|
||||||
GstVideoRectangle src = { 0, };
|
GstVideoRectangle src = { 0, };
|
||||||
GstVideoRectangle dst = { 0, };
|
GstVideoRectangle dst = { 0, };
|
||||||
GstVideoRectangle result;
|
GstVideoRectangle result;
|
||||||
|
@ -1182,9 +1183,17 @@ gst_xvimagesink_navigation_send_event (GstNavigation * navigation,
|
||||||
(gdouble) y * yscale, NULL);
|
(gdouble) y * yscale, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_pad_send_event (peer, event);
|
gst_event_ref (event);
|
||||||
|
handled = gst_pad_send_event (peer, event);
|
||||||
|
if (handled)
|
||||||
|
gst_event_unref (event);
|
||||||
gst_object_unref (peer);
|
gst_object_unref (peer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!handled && event) {
|
||||||
|
gst_element_post_message ((GstElement *) xvimagesink,
|
||||||
|
gst_navigation_message_new_event ((GstObject *) xvimagesink, event));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue