Change GstCaps to GstStructure in navigation events. Fix x[v]imagesink to scale...
authorDavid Schleef <ds@schleef.org>
Tue, 11 Nov 2003 00:43:29 +0000 (00:43 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 11 Nov 2003 00:43:29 +0000 (00:43 +0000)
Original commit message from CVS:
Change GstCaps to GstStructure in navigation events.  Fix x[v]imagesink
to scale navigation events.

gst/debug/gstnavigationtest.c
gst/debug/gstnavigationtest.h

index 5dbe84c..97ada37 100644 (file)
@@ -153,10 +153,10 @@ gst_navigationtest_handle_src_event (GstPad *pad, GstEvent *event)
 
   switch (GST_EVENT_TYPE (event)) {
     case GST_EVENT_NAVIGATION:
-      gst_caps_get_float(event->event_data.caps.caps, "pointer_x",
-          &navigationtest->x);
-      gst_caps_get_float(event->event_data.caps.caps, "pointer_y",
-          &navigationtest->y);
+      gst_structure_get_double(event->event_data.structure.structure,
+          "pointer_x", &navigationtest->x);
+      gst_structure_get_double(event->event_data.structure.structure,
+          "pointer_y", &navigationtest->y);
       break;
     default:
       break;
index 324e05b..61798c9 100644 (file)
@@ -46,8 +46,8 @@ typedef struct _GstNavigationtestClass GstNavigationtestClass;
 struct _GstNavigationtest {
   GstVideofilter videofilter;
 
-  float x;
-  float y;
+  double x;
+  double y;
 };
 
 struct _GstNavigationtestClass {