From 72c979d84b18debe7b9d678bc975ad5e777ca6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Sun, 5 Oct 2008 22:00:27 -0400 Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Check the size of the input buffer, not the output buffer --- gst/siren/gstsirendec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/siren/gstsirendec.c b/gst/siren/gstsirendec.c index 3b66c5d4be..97f91778ed 100644 --- a/gst/siren/gstsirendec.c +++ b/gst/siren/gstsirendec.c @@ -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);