streamcombiner: fix srcpad query caps

The caps query on the srcpad should return the template caps instead of
forwarding the query.
This commit is contained in:
Wim Taymans 2012-01-02 18:28:46 +01:00
parent 30a66af4e2
commit e2f91075e4

View file

@ -166,7 +166,13 @@ gst_stream_combiner_src_query (GstPad * pad, GstObject * parent,
{
GstStreamCombiner *stream_combiner = (GstStreamCombiner *) parent;
GstPad *sinkpad = NULL;
gboolean ret = FALSE;
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_CAPS:
ret = gst_pad_query_default (pad, parent, query);
break;
default:
STREAMS_LOCK (stream_combiner);
if (stream_combiner->current)
sinkpad = stream_combiner->current;
@ -176,9 +182,10 @@ gst_stream_combiner_src_query (GstPad * pad, GstObject * parent,
if (sinkpad)
/* Forward upstream as is */
return gst_pad_peer_query (sinkpad, query);
return FALSE;
ret = gst_pad_peer_query (sinkpad, query);
break;
}
return ret;
}
static void