summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gst/debug/gstnavigationtest.c8
-rw-r--r--gst/debug/gstnavigationtest.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/gst/debug/gstnavigationtest.c b/gst/debug/gstnavigationtest.c
index 5dbe84c0..97ada378 100644
--- a/gst/debug/gstnavigationtest.c
+++ b/gst/debug/gstnavigationtest.c
@@ -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;
diff --git a/gst/debug/gstnavigationtest.h b/gst/debug/gstnavigationtest.h
index 324e05bc..61798c93 100644
--- a/gst/debug/gstnavigationtest.h
+++ b/gst/debug/gstnavigationtest.h
@@ -46,8 +46,8 @@ typedef struct _GstNavigationtestClass GstNavigationtestClass;
struct _GstNavigationtest {
GstVideofilter videofilter;
- float x;
- float y;
+ double x;
+ double y;
};
struct _GstNavigationtestClass {