summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormutex at runbox dot com <mutex@runbox.com>2007-12-10 17:18:35 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-12-10 17:18:35 +0000
commit5c1c4a4477f4177c84435b225ce161798ffc21f9 (patch)
treeaf699469dedf400c6d53cb5a7e174c6f6bedb7ea
parentb99d637ab7d86e10624ee428d962cc3051f3308a (diff)
downloadgst-plugins-bad-5c1c4a4477f4177c84435b225ce161798ffc21f9.tar.gz
gst-plugins-bad-5c1c4a4477f4177c84435b225ce161798ffc21f9.tar.bz2
gst-plugins-bad-5c1c4a4477f4177c84435b225ce161798ffc21f9.zip
gst/videoparse/gstvideoparse.c: Forward the query upstream, the default element event handler does something differen...
Original commit message from CVS: Based on patch by: <mutex at runbox dot com> * gst/videoparse/gstvideoparse.c: (gst_video_parse_src_query): Forward the query upstream, the default element event handler does something different. Fixes #502879.
-rw-r--r--ChangeLog8
-rw-r--r--gst/videoparse/gstvideoparse.c7
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index c1099801..d7dba842 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2007-12-10 Wim Taymans <wim.taymans@collabora.co.uk>
+ Based on patch by: <mutex at runbox dot com>
+
+ * gst/videoparse/gstvideoparse.c: (gst_video_parse_src_query):
+ Forward the query upstream, the default element event handler does
+ something different. Fixes #502879.
+
+2007-12-10 Wim Taymans <wim.taymans@collabora.co.uk>
+
* gst/rtpmanager/gstrtpbin.c: (on_ssrc_sdes), (create_session),
(gst_rtp_bin_class_init):
* gst/rtpmanager/gstrtpbin.h:
diff --git a/gst/videoparse/gstvideoparse.c b/gst/videoparse/gstvideoparse.c
index 98378443..bc084cad 100644
--- a/gst/videoparse/gstvideoparse.c
+++ b/gst/videoparse/gstvideoparse.c
@@ -355,17 +355,14 @@ gst_video_parse_src_query (GstPad * pad, GstQuery * query)
gst_query_set_convert (query, src_fmt, src_val, dest_fmt, dest_val);
} else {
- ret = GST_ELEMENT_CLASS (parent_class)->query (GST_ELEMENT (vp), query);
+ /* else forward upstream */
+ ret = gst_pad_peer_query (vp->sinkpad, query);
}
gst_object_unref (vp);
return ret;
}
-
-
-
-
static gboolean
plugin_init (GstPlugin * plugin)
{