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.
This commit is contained in:
David Schleef 2003-11-11 00:43:29 +00:00
parent e9b809fdba
commit dc1936977b
2 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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 {