By default, do not forward pad queries upstream, because it may have unforessen side-effects (forwarding the new 1.0 GST_CAPS query would prevent pad linking for instance)

This commit is contained in:
David Corvoysier 2012-11-21 14:14:21 +01:00 committed by Thiago Santos
parent d058a7f2b2
commit e323c099a0

View file

@ -768,16 +768,7 @@ gst_dash_demux_src_query (GstPad * pad, GstQuery * query)
break;
}
default:{
GstPad *peer;
if ((peer = gst_pad_get_peer (dashdemux->sinkpad))) {
/* Try to query upstream */
ret = gst_pad_query (peer, query);
gst_object_unref (peer);
} else {
/* no peer, we don't know */
ret = FALSE;
}
// By default, do not forward queries upstream
break;
}
}