mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
v4l2: videodec: Improve few logs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4437>
This commit is contained in:
parent
fca61fad4d
commit
4a53beeb1f
1 changed files with 5 additions and 1 deletions
|
@ -713,6 +713,8 @@ gst_v4l2_video_dec_wait_for_src_ch (GstV4l2VideoDec * self)
|
||||||
if (!self->wait_for_source_change)
|
if (!self->wait_for_source_change)
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (self, "Waiting for source change event");
|
||||||
|
|
||||||
GST_VIDEO_DECODER_STREAM_UNLOCK (GST_VIDEO_DECODER (self));
|
GST_VIDEO_DECODER_STREAM_UNLOCK (GST_VIDEO_DECODER (self));
|
||||||
flowret = gst_v4l2_object_poll (self->v4l2capture, GST_CLOCK_TIME_NONE);
|
flowret = gst_v4l2_object_poll (self->v4l2capture, GST_CLOCK_TIME_NONE);
|
||||||
GST_VIDEO_DECODER_STREAM_LOCK (GST_VIDEO_DECODER (self));
|
GST_VIDEO_DECODER_STREAM_LOCK (GST_VIDEO_DECODER (self));
|
||||||
|
@ -739,6 +741,8 @@ gst_v4l2_video_dec_loop (GstVideoDecoder * decoder)
|
||||||
GstBuffer *buffer = NULL;
|
GstBuffer *buffer = NULL;
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
|
||||||
|
GST_LOG_OBJECT (self, "Looping.");
|
||||||
|
|
||||||
GST_VIDEO_DECODER_STREAM_LOCK (decoder);
|
GST_VIDEO_DECODER_STREAM_LOCK (decoder);
|
||||||
if (G_UNLIKELY (!GST_V4L2_IS_ACTIVE (self->v4l2capture))) {
|
if (G_UNLIKELY (!GST_V4L2_IS_ACTIVE (self->v4l2capture))) {
|
||||||
ret = gst_v4l2_video_dec_wait_for_src_ch (self);
|
ret = gst_v4l2_video_dec_wait_for_src_ch (self);
|
||||||
|
@ -761,7 +765,7 @@ gst_v4l2_video_dec_loop (GstVideoDecoder * decoder)
|
||||||
}
|
}
|
||||||
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
|
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
|
||||||
|
|
||||||
GST_LOG_OBJECT (decoder, "Allocate output buffer");
|
GST_LOG_OBJECT (decoder, "Acquire output buffer");
|
||||||
|
|
||||||
self->output_flow = GST_FLOW_OK;
|
self->output_flow = GST_FLOW_OK;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue