diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-17 11:25:31 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-17 11:25:31 +0200 |
commit | 318ed07598917ae91b3e80e056614f7a2d0eef8e (patch) | |
tree | 754f1f8b97c3f8777323fa0bfde10c5c238fc05d /ext/gio | |
parent | 8549dd352d7488ae93e7f15e9153cca92a83865d (diff) | |
download | gstreamer-plugins-base-318ed07598917ae91b3e80e056614f7a2d0eef8e.tar.gz |
Revert "-base_port to new query API"
This reverts commit c9f4e0676ba8c8074a50aa6d1d058f6da9a76b32.
Diffstat (limited to 'ext/gio')
-rw-r--r-- | ext/gio/gstgiobasesink.c | 14 | ||||
-rw-r--r-- | ext/gio/gstgiobasesrc.c | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/ext/gio/gstgiobasesink.c b/ext/gio/gstgiobasesink.c index 7ef5fca95..f956511df 100644 --- a/ext/gio/gstgiobasesink.c +++ b/ext/gio/gstgiobasesink.c @@ -45,7 +45,7 @@ static gboolean gst_gio_base_sink_event (GstBaseSink * base_sink, GstEvent * event); static GstFlowReturn gst_gio_base_sink_render (GstBaseSink * base_sink, GstBuffer * buffer); -static gboolean gst_gio_base_sink_query (GstPad * pad, GstQuery ** query); +static gboolean gst_gio_base_sink_query (GstPad * pad, GstQuery * query); static void gst_gio_base_sink_class_init (GstGioBaseSinkClass * klass) @@ -312,31 +312,31 @@ gst_gio_base_sink_render (GstBaseSink * base_sink, GstBuffer * buffer) } static gboolean -gst_gio_base_sink_query (GstPad * pad, GstQuery ** query) +gst_gio_base_sink_query (GstPad * pad, GstQuery * query) { GstGioBaseSink *sink = GST_GIO_BASE_SINK (GST_PAD_PARENT (pad)); GstFormat format; - switch (GST_QUERY_TYPE (*query)) { + switch (GST_QUERY_TYPE (query)) { case GST_QUERY_POSITION: - gst_query_parse_position (*query, &format, NULL); + gst_query_parse_position (query, &format, NULL); switch (format) { case GST_FORMAT_BYTES: case GST_FORMAT_DEFAULT: - gst_query_set_position (*query, GST_FORMAT_BYTES, sink->position); + gst_query_set_position (query, GST_FORMAT_BYTES, sink->position); return TRUE; default: return FALSE; } case GST_QUERY_FORMATS: - gst_query_set_formats (*query, 2, GST_FORMAT_DEFAULT, GST_FORMAT_BYTES); + gst_query_set_formats (query, 2, GST_FORMAT_DEFAULT, GST_FORMAT_BYTES); return TRUE; case GST_QUERY_URI: if (GST_IS_URI_HANDLER (sink)) { const gchar *uri; uri = gst_uri_handler_get_uri (GST_URI_HANDLER (sink)); - gst_query_set_uri (*query, uri); + gst_query_set_uri (query, uri); return TRUE; } return FALSE; diff --git a/ext/gio/gstgiobasesrc.c b/ext/gio/gstgiobasesrc.c index 862e1d433..a31c05423 100644 --- a/ext/gio/gstgiobasesrc.c +++ b/ext/gio/gstgiobasesrc.c @@ -51,7 +51,7 @@ static gboolean gst_gio_base_src_check_get_range (GstBaseSrc * base_src); static GstFlowReturn gst_gio_base_src_create (GstBaseSrc * base_src, guint64 offset, guint size, GstBuffer ** buf); static gboolean gst_gio_base_src_query (GstBaseSrc * base_src, - GstQuery ** query); + GstQuery * query); static void gst_gio_base_src_class_init (GstGioBaseSrcClass * klass) @@ -418,16 +418,16 @@ gst_gio_base_src_create (GstBaseSrc * base_src, guint64 offset, guint size, } static gboolean -gst_gio_base_src_query (GstBaseSrc * base_src, GstQuery ** query) +gst_gio_base_src_query (GstBaseSrc * base_src, GstQuery * query) { gboolean ret = FALSE; GstGioBaseSrc *src = GST_GIO_BASE_SRC (base_src); - switch (GST_QUERY_TYPE (*query)) { + switch (GST_QUERY_TYPE (query)) { case GST_QUERY_URI: if (GST_IS_URI_HANDLER (src)) { const gchar *uri = gst_uri_handler_get_uri (GST_URI_HANDLER (src)); - gst_query_set_uri (*query, uri); + gst_query_set_uri (query, uri); ret = TRUE; } break; |