From a086ad230eb86fc0edcaa10b73f7ddc964013c34 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 30 Jul 2007 12:41:58 +0000 Subject: gst/qtdemux/qtdemux.c: If the buffer was entirely clipped ... don't try sending it :) Original commit message from CVS: * gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_state_movie): If the buffer was entirely clipped ... don't try sending it :) --- gst/qtdemux/qtdemux.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst') diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 2d22b606..c2129d99 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -1470,6 +1470,9 @@ gst_qtdemux_loop_state_movie (GstQTDemux * qtdemux) if (stream->need_clip) buf = gst_qtdemux_clip_buffer (qtdemux, stream, buf); + if (buf == NULL) + goto next; + if (stream->discont) { GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT); stream->discont = FALSE; -- cgit