diff options
-rw-r--r-- | subprojects/gst-plugins-good/sys/v4l2/gstv4l2bufferpool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2bufferpool.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2bufferpool.c index 3f28305324..814a3a9943 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2bufferpool.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2bufferpool.c @@ -1030,7 +1030,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); |