mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
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:
parent
e9b809fdba
commit
dc1936977b
2 changed files with 6 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue