mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
v4l2: Add a debug message beforing waiting for codec stop
Add a debug message right before waiting for the driver. This is useful in order to debug drivers without a properly implemented decoder or encoder stop command.
This commit is contained in:
parent
09f9b37b0b
commit
7f42b12e8c
2 changed files with 2 additions and 0 deletions
|
@ -381,6 +381,7 @@ gst_v4l2_video_dec_finish (GstVideoDecoder * decoder)
|
|||
|
||||
/* If the decoder stop command succeeded, just wait until processing is
|
||||
* finished */
|
||||
GST_DEBUG_OBJECT (self, "Waiting for decoder stop");
|
||||
GST_OBJECT_LOCK (task);
|
||||
while (GST_TASK_STATE (task) == GST_TASK_STARTED)
|
||||
GST_TASK_WAIT (task);
|
||||
|
|
|
@ -274,6 +274,7 @@ gst_v4l2_video_enc_finish (GstVideoEncoder * encoder)
|
|||
GstTask *task = encoder->srcpad->task;
|
||||
|
||||
/* Wait for the task to be drained */
|
||||
GST_DEBUG_OBJECT (self, "Waiting for encoder stop");
|
||||
GST_OBJECT_LOCK (task);
|
||||
while (GST_TASK_STATE (task) == GST_TASK_STARTED)
|
||||
GST_TASK_WAIT (task);
|
||||
|
|
Loading…
Reference in a new issue