Commit dc193697 authored by David Schleef's avatar David Schleef
Browse files

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.
parent e9b809fd
......@@ -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;
......
......@@ -46,8 +46,8 @@ typedef struct _GstNavigationtestClass GstNavigationtestClass;
struct _GstNavigationtest {
GstVideofilter videofilter;
float x;
float y;
double x;
double y;
};
struct _GstNavigationtestClass {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment