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)) {
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;

View file

@ -46,8 +46,8 @@ typedef struct _GstNavigationtestClass GstNavigationtestClass;
struct _GstNavigationtest {
GstVideofilter videofilter;
float x;
float y;
double x;
double y;
};
struct _GstNavigationtestClass {