mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +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/4437>
This commit is contained in:
parent
4dded20929
commit
fca61fad4d
1 changed files with 5 additions and 3 deletions
|
@ -493,9 +493,11 @@ gst_v4l2_video_dec_finish (GstVideoDecoder * decoder)
|
|||
counter++;
|
||||
gst_video_decoder_drop_frame (decoder, frame);
|
||||
}
|
||||
g_warning
|
||||
("%s: %i frames %u-%u left undrained after CMD_STOP, eos sent too early: bug in decoder -- please file a bug",
|
||||
if (self->output_flow == GST_FLOW_OK) {
|
||||
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);
|
||||
}
|
||||
if (pending_frames)
|
||||
g_list_free (pending_frames);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue