[MOVED FROM GST-P-FARSIGHT] Check the size of the input buffer, not the output buffer
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>
Mon, 6 Oct 2008 02:00:27 +0000 (22:00 -0400)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 17 Feb 2009 18:29:40 +0000 (19:29 +0100)
gst/siren/gstsirendec.c

index 3b66c5d4bed528df008a72a5ac3d03e18530a439..97f91778ed8c297cdf0f0ab34efe1bc1703d13fc 100644 (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);