< prev index next >

modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-bad/gst/aiff/aiffparse.c

Print this page
rev 11070 : imported patch 12.patch

*** 1341,1350 **** --- 1341,1358 ---- aiff->max_buf_size * ABS (aiff->segment.rate)); if (desired >= aiff->bytes_per_sample) desired -= (desired % aiff->bytes_per_sample); + #ifdef GSTREAMER_LITE + if (desired == 0) { + GST_ELEMENT_ERROR (aiff, STREAM, DEMUX, (NULL), + ("Invalid stream")); + return GST_FLOW_ERROR; + } + #endif // GSTREAMER_LITE + GST_LOG_OBJECT (aiff, "Fetching %" G_GINT64_FORMAT " bytes of data " "from the sinkpad", desired); if (aiff->streaming) { guint avail = gst_adapter_available (aiff->adapter);
< prev index next >