diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2014-12-06 21:56:53 +0000 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2014-12-06 23:43:08 +0000 |
commit | a69ffdc71e82e10cf533e33b0e0ede3875647948 (patch) | |
tree | 4e8cad84859baf17f5ae6ff05af326a4e78210ad | |
parent | 98a86e242f55ec9eb649dddf19c1f904e2df7a36 (diff) | |
download | clutter-gst-a69ffdc71e82e10cf533e33b0e0ede3875647948.tar.gz |
video-sink: add empty navigation interface implementation
-rw-r--r-- | clutter-gst/clutter-gst-video-sink.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c index 024156e..933ec40 100644 --- a/clutter-gst/clutter-gst-video-sink.c +++ b/clutter-gst/clutter-gst-video-sink.c @@ -79,6 +79,7 @@ #include <gst/gst.h> #include <gst/gstvalue.h> +#include <gst/video/navigation.h> #include <gst/video/video.h> #include <gst/riff/riff-ids.h> #include <string.h> @@ -118,18 +119,21 @@ static const char clutter_gst_video_sink_caps_str[] = ; - static GstStaticPadTemplate sinktemplate_all = +static GstStaticPadTemplate sinktemplate_all = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (clutter_gst_video_sink_caps_str)); static void color_balance_iface_init (GstColorBalanceInterface *iface); +static void navigation_interface_init (GstNavigationInterface *iface); G_DEFINE_TYPE_WITH_CODE (ClutterGstVideoSink, clutter_gst_video_sink, GST_TYPE_VIDEO_SINK, - G_IMPLEMENT_INTERFACE (GST_TYPE_COLOR_BALANCE, color_balance_iface_init)) + G_IMPLEMENT_INTERFACE (GST_TYPE_COLOR_BALANCE, color_balance_iface_init) + G_IMPLEMENT_INTERFACE (GST_TYPE_NAVIGATION, + navigation_interface_init)) enum { @@ -681,6 +685,22 @@ color_balance_iface_init (GstColorBalanceInterface *iface) /**/ 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? +} + +static void +navigation_interface_init (GstNavigationInterface * iface) +{ + iface->send_event = clutter_gst_video_sink_navigation_send_event; +} + +/**/ + +static void clutter_gst_source_finalize (GSource *source) { ClutterGstSource *gst_source = (ClutterGstSource *) source; |