mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-27 14:01:04 +00:00
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:
parent
be0403ce24
commit
0b54cdb8ea
1 changed files with 2 additions and 4 deletions
|
@ -586,12 +586,10 @@ impl ProxySink {
|
||||||
true
|
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);
|
gst_log!(self.cat, obj: pad, "Handling query {:?}", query);
|
||||||
|
|
||||||
// FIXME: How can we do this?
|
pad.query_default(element, query)
|
||||||
gst_log!(self.cat, obj: pad, "Dropping query {:?}", query);
|
|
||||||
false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn prepare(&self, element: &Element) -> Result<(), gst::ErrorMessage> {
|
fn prepare(&self, element: &Element) -> Result<(), gst::ErrorMessage> {
|
||||||
|
|
Loading…
Reference in a new issue