mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
66849fbdd1
commit
4dded20929
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue