v4l2bufferpool: Improve debugging

This commit is contained in:
Nicolas Dufresne 2014-05-04 20:23:42 -04:00 committed by Nicolas Dufresne
parent c7d735a596
commit 972cf80957

View file

@ -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++) {