mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-23 20:10:59 +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
|
||||
}
|
||||
|
||||
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> {
|
||||
|
|
Loading…
Reference in a new issue