Commit 972cf809 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by Nicolas Dufresne
Browse files

v4l2bufferpool: Improve debugging

parent c7d735a5
...@@ -595,6 +595,8 @@ start_streaming (GstV4l2BufferPool * pool) ...@@ -595,6 +595,8 @@ start_streaming (GstV4l2BufferPool * pool)
{ {
GstV4l2Object *obj = pool->obj; GstV4l2Object *obj = pool->obj;
GST_DEBUG_OBJECT (pool, "start streaming");
if (pool->streaming) if (pool->streaming)
return TRUE; return TRUE;
...@@ -632,10 +634,11 @@ start_streaming (GstV4l2BufferPool * pool) ...@@ -632,10 +634,11 @@ start_streaming (GstV4l2BufferPool * pool)
goto requeue_failed; goto requeue_failed;
} }
GST_DEBUG_OBJECT (pool, "STREAMON");
if (v4l2_ioctl (pool->video_fd, VIDIOC_STREAMON, &obj->type) < 0) if (v4l2_ioctl (pool->video_fd, VIDIOC_STREAMON, &obj->type) < 0)
goto start_failed; goto start_failed;
GST_DEBUG_OBJECT (pool, "STREAMON");
break; break;
} }
default: default:
...@@ -880,10 +883,11 @@ stop_streaming (GstV4l2BufferPool * pool) ...@@ -880,10 +883,11 @@ stop_streaming (GstV4l2BufferPool * pool)
case GST_V4L2_IO_USERPTR: case GST_V4L2_IO_USERPTR:
case GST_V4L2_IO_DMABUF: case GST_V4L2_IO_DMABUF:
case GST_V4L2_IO_DMABUF_IMPORT: case GST_V4L2_IO_DMABUF_IMPORT:
GST_DEBUG_OBJECT (pool, "STREAMOFF");
if (v4l2_ioctl (pool->video_fd, VIDIOC_STREAMOFF, &obj->type) < 0) if (v4l2_ioctl (pool->video_fd, VIDIOC_STREAMOFF, &obj->type) < 0)
goto stop_failed; goto stop_failed;
GST_DEBUG_OBJECT (pool, "STREAMOFF");
gst_v4l2_allocator_flush (pool->vallocator); gst_v4l2_allocator_flush (pool->vallocator);
for (i = 0; i < pool->num_allocated; i++) { for (i = 0; i < pool->num_allocated; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment