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:
Ezequiel Garcia 2018-09-11 16:46:34 -03:00 committed by Nicolas Dufresne
parent 09f9b37b0b
commit 7f42b12e8c
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -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);