diff --git a/sys/v4l2/gstv4l2videodec.c b/sys/v4l2/gstv4l2videodec.c index e2b22373b3..fc89d41496 100644 --- a/sys/v4l2/gstv4l2videodec.c +++ b/sys/v4l2/gstv4l2videodec.c @@ -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); diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c index 7e88923140..c8a5389016 100644 --- a/sys/v4l2/gstv4l2videoenc.c +++ b/sys/v4l2/gstv4l2videoenc.c @@ -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);