camerabin: Remove drain query

This was to support very old V4L2 kernel. As we moved to DMABuf and can now
detach buffers on renegotiation, the buffer it tries to fix no longer exist.
The risk to blocking indefinitly the application does still exist though.

Fixes #1070

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1861>
This commit is contained in:
Nicolas Dufresne 2022-03-04 16:48:54 -05:00 committed by GStreamer Marge Bot
parent 0b7e8efe61
commit 576b074dde

View file

@ -237,10 +237,6 @@ static void
gst_wrapper_camera_bin_src_set_output (GstWrapperCameraBinSrc * self,
GstPad * old_pad, GstPad * output_pad)
{
GstQuery *drain = gst_query_new_drain ();
gst_pad_peer_query (self->src_pad, drain);
gst_query_unref (drain);
if (old_pad)
gst_ghost_pad_set_target (GST_GHOST_PAD (old_pad), NULL);
if (output_pad)