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) ...@@ -153,10 +153,10 @@ gst_navigationtest_handle_src_event (GstPad *pad, GstEvent *event)
switch (GST_EVENT_TYPE (event)) { switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_NAVIGATION: case GST_EVENT_NAVIGATION:
gst_caps_get_float(event->event_data.caps.caps, "pointer_x", gst_structure_get_double(event->event_data.structure.structure,
&navigationtest->x); "pointer_x", &navigationtest->x);
gst_caps_get_float(event->event_data.caps.caps, "pointer_y", gst_structure_get_double(event->event_data.structure.structure,
&navigationtest->y); "pointer_y", &navigationtest->y);
break; break;
default: default:
break; break;
......
...@@ -46,8 +46,8 @@ typedef struct _GstNavigationtestClass GstNavigationtestClass; ...@@ -46,8 +46,8 @@ typedef struct _GstNavigationtestClass GstNavigationtestClass;
struct _GstNavigationtest { struct _GstNavigationtest {
GstVideofilter videofilter; GstVideofilter videofilter;
float x; double x;
float y; double y;
}; };
struct _GstNavigationtestClass { 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