[MOVED FROM GST-P-FARSIGHT] Check the size of the input buffer, not the output buffer

This commit is contained in:
Olivier Crête 2008-10-05 22:00:27 -04:00 committed by Edward Hervey
parent a67aa17c6d
commit 72c979d84b

View file

@ -179,7 +179,7 @@ gst_siren_dec_chain (GstPad *pad, GstBuffer *buf)
return GST_FLOW_OK;
}
if (size % 40 != 0)
if (GST_BUFFER_SIZE (buf) % 40 != 0)
GST_LOG_OBJECT (dec, "Got buffer with size not a multiple for frame size,"
" ignoring last %u bytes", GST_BUFFER_SIZE (buf) % 40);