mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
v4l2bufferpool: Improve debugging
This commit is contained in:
parent
c7d735a596
commit
972cf80957
1 changed files with 7 additions and 3 deletions
|
@ -595,6 +595,8 @@ start_streaming (GstV4l2BufferPool * pool)
|
|||
{
|
||||
GstV4l2Object *obj = pool->obj;
|
||||
|
||||
GST_DEBUG_OBJECT (pool, "start streaming");
|
||||
|
||||
if (pool->streaming)
|
||||
return TRUE;
|
||||
|
||||
|
@ -632,10 +634,11 @@ start_streaming (GstV4l2BufferPool * pool)
|
|||
goto requeue_failed;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (pool, "STREAMON");
|
||||
|
||||
if (v4l2_ioctl (pool->video_fd, VIDIOC_STREAMON, &obj->type) < 0)
|
||||
goto start_failed;
|
||||
|
||||
GST_DEBUG_OBJECT (pool, "STREAMON");
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
@ -880,10 +883,11 @@ stop_streaming (GstV4l2BufferPool * pool)
|
|||
case GST_V4L2_IO_USERPTR:
|
||||
case GST_V4L2_IO_DMABUF:
|
||||
case GST_V4L2_IO_DMABUF_IMPORT:
|
||||
GST_DEBUG_OBJECT (pool, "STREAMOFF");
|
||||
if (v4l2_ioctl (pool->video_fd, VIDIOC_STREAMOFF, &obj->type) < 0)
|
||||
goto stop_failed;
|
||||
|
||||
GST_DEBUG_OBJECT (pool, "STREAMOFF");
|
||||
|
||||
gst_v4l2_allocator_flush (pool->vallocator);
|
||||
|
||||
for (i = 0; i < pool->num_allocated; i++) {
|
||||
|
|
Loading…
Reference in a new issue