v4l2bufferpool: Avoid set_flushing warning
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 26 Jun 2020 15:05:25 +0000 (11:05 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 26 Jun 2020 19:24:21 +0000 (19:24 +0000)
commitb8f1f2195ec7ef5f930a4b0bf66ce484ca21d5fa
treebeca06a012e685d3dcaad9e5c2b3d50e0c064382
parent0344c50eafa5a1b1bc203808d8950e3b07e563e8
v4l2bufferpool: Avoid set_flushing warning

The gst_buffer_pool_set_flushing() warns when that function is called
on an inactive pool. Avoid the warning by checking the state, this is
similar to what we do in gst_v4l2_object_unlock().

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/649>
sys/v4l2/gstv4l2bufferpool.c