diff options
author | David Schleef <ds@schleef.org> | 2003-11-11 00:43:29 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-11-11 00:43:29 +0000 |
commit | 7e171f0215303fae4ac0c6e3e083d0d3144842f7 (patch) | |
tree | d1ee45c344c21aaf235a8f18889bd34c029c7844 /gst-libs/gst/navigation/navigation.c | |
parent | 65941aa8d9ef8b5612b03588f72b1bacaa363aa0 (diff) | |
download | gst-plugins-bad-7e171f0215303fae4ac0c6e3e083d0d3144842f7.tar.gz gst-plugins-bad-7e171f0215303fae4ac0c6e3e083d0d3144842f7.tar.bz2 gst-plugins-bad-7e171f0215303fae4ac0c6e3e083d0d3144842f7.zip |
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.
Diffstat (limited to 'gst-libs/gst/navigation/navigation.c')
-rw-r--r-- | gst-libs/gst/navigation/navigation.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gst-libs/gst/navigation/navigation.c b/gst-libs/gst/navigation/navigation.c index 3462348d..feb84dfa 100644 --- a/gst-libs/gst/navigation/navigation.c +++ b/gst-libs/gst/navigation/navigation.c @@ -61,31 +61,31 @@ gst_navigation_class_init (GstNavigationInterface *iface) } void -gst_navigation_send_event (GstNavigation *navigation, GstCaps *caps) +gst_navigation_send_event (GstNavigation *navigation, GstStructure *structure) { GstNavigationInterface *iface = GST_NAVIGATION_GET_IFACE (navigation); if (iface->send_event) { - iface->send_event (navigation, caps); + iface->send_event (navigation, structure); } } void gst_navigation_send_key_event (GstNavigation *navigation, const char *key) { - gst_navigation_send_event (navigation, GST_CAPS_NEW ("key_event", - "application/x-gst-navigation", - "key", GST_PROPS_STRING (key))); + gst_navigation_send_event (navigation, gst_structure_new ( + "application/x-gst-navigation", + "key", G_TYPE_STRING, key, NULL)); } void gst_navigation_send_mouse_event (GstNavigation *navigation, double x, double y) { - gst_navigation_send_event (navigation, GST_CAPS_NEW ("mouse_event", + gst_navigation_send_event (navigation, gst_structure_new ( "application/x-gst-navigation", - "pointer_x", GST_PROPS_FLOAT (x), - "pointer_y", GST_PROPS_FLOAT (y))); + "pointer_x", G_TYPE_DOUBLE, x, + "pointer_y", G_TYPE_DOUBLE, y, NULL)); } |