mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
v4l2: videodec: Only warn of incomplete drain on success
We may have hit an error, or just flushing in order to stop the thread, in which case, not having drain everything is expected and not a driver bug. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4525>
This commit is contained in:
parent
8e4dc89371
commit
ba6f68d4c2
1 changed files with 5 additions and 3 deletions
|
@ -493,9 +493,11 @@ gst_v4l2_video_dec_finish (GstVideoDecoder * decoder)
|
||||||
counter++;
|
counter++;
|
||||||
gst_video_decoder_drop_frame (decoder, frame);
|
gst_video_decoder_drop_frame (decoder, frame);
|
||||||
}
|
}
|
||||||
g_warning
|
if (self->output_flow == GST_FLOW_OK) {
|
||||||
("%s: %i frames %u-%u left undrained after CMD_STOP, eos sent too early: bug in decoder -- please file a bug",
|
g_warning ("%s: %i frames %u-%u left undrained after CMD_STOP, "
|
||||||
|
"eos sent too early: bug in decoder -- please file a bug",
|
||||||
GST_ELEMENT_NAME (decoder), counter, first, last);
|
GST_ELEMENT_NAME (decoder), counter, first, last);
|
||||||
|
}
|
||||||
if (pending_frames)
|
if (pending_frames)
|
||||||
g_list_free (pending_frames);
|
g_list_free (pending_frames);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue