threadshare: Use default query handling

While this will still drop most queries, it at least implements some
sane default handling for CAPS/ACCEPT_CAPS queries.
This commit is contained in:
Sebastian Dröge 2018-05-10 10:53:07 +03:00
parent be0403ce24
commit 0b54cdb8ea

View file

@ -586,12 +586,10 @@ impl ProxySink {
true
}
fn sink_query(&self, pad: &gst::Pad, _element: &Element, query: &mut gst::QueryRef) -> bool {
fn sink_query(&self, pad: &gst::Pad, element: &Element, query: &mut gst::QueryRef) -> bool {
gst_log!(self.cat, obj: pad, "Handling query {:?}", query);
// FIXME: How can we do this?
gst_log!(self.cat, obj: pad, "Dropping query {:?}", query);
false
pad.query_default(element, query)
}
fn prepare(&self, element: &Element) -> Result<(), gst::ErrorMessage> {