v4l2: bufferpool: Don't assert when orphaning is not needed

This may happen when shutting down and should not cause
any harm. This removes the associated assert when shutting
down the pipeline, notably with CTRL+C.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4437>
This commit is contained in:
Nicolas Dufresne 2023-04-17 16:05:35 -04:00
parent 66849fbdd1
commit 4dded20929

View file

@ -1032,7 +1032,9 @@ gst_v4l2_buffer_pool_orphan (GstV4l2Object * v4l2object)
GstV4l2BufferPool *pool;
gboolean ret;
g_return_val_if_fail (bpool, FALSE);
/* Nothing to do if there is no pool */
if (!bpool)
return TRUE;
pool = GST_V4L2_BUFFER_POOL (bpool);