[clutter-gst/clutter-gst-3.0] video-sink: forward navigation event upstream
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] video-sink: forward navigation event upstream
- Date: Sat, 26 Sep 2015 10:55:55 +0000 (UTC)
commit f1d410c04f0008203383bd2cc797a8ccf2d3f554
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Sat Sep 26 11:54:50 2015 +0100
video-sink: forward navigation event upstream
clutter-gst/clutter-gst-video-sink.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 8f0bedb..8a74557 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -693,8 +693,20 @@ static void
clutter_gst_video_sink_navigation_send_event (GstNavigation *navigation,
GstStructure *structure)
{
- // TODO: how do we feed the events back to the UI layer? New
- // signals?
+ GstEvent *event;
+ GstPad *pad = NULL;
+
+ event = gst_event_new_navigation (structure);
+
+ pad = gst_pad_get_peer (GST_VIDEO_SINK_PAD (navigation));
+
+ if (GST_IS_PAD (pad))
+ {
+ gst_pad_send_event (pad, event);
+ gst_object_unref (pad);
+ }
+ else
+ gst_event_unref (event);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]