mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
basevideo: Add a warning
This commit is contained in:
parent
e3d9e9d98b
commit
440fceec73
1 changed files with 4 additions and 0 deletions
|
@ -673,6 +673,10 @@ gst_base_video_decoder_chain (GstPad * pad, GstBuffer * buf)
|
|||
n = gst_adapter_available (base_video_decoder->input_adapter);
|
||||
m = klass->scan_for_sync (base_video_decoder, FALSE, 0, n);
|
||||
|
||||
if (m < 0) {
|
||||
g_warning ("subclass returned negative scan %d", m);
|
||||
}
|
||||
|
||||
if (m >= n) {
|
||||
g_warning ("subclass scanned past end %d >= %d", m, n);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue