summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-11-11 00:43:29 +0000
committerDavid Schleef <ds@schleef.org>2003-11-11 00:43:29 +0000
commitdc1936977b14f3d63f09aca6f47f65dae9e7e103 (patch)
tree723bbba601a8ee630dcf6f769a23edceabd05d1f
parente9b809fdbad49ff9f3d5da3cda2b194323901de4 (diff)
Change GstCaps to GstStructure in navigation events. Fix x[v]imagesink to scale navigation events.
Original commit message from CVS: Change GstCaps to GstStructure in navigation events. Fix x[v]imagesink to scale navigation events.
-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 {