summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2007-07-30 12:41:58 +0000
committerEdward Hervey <bilboed@bilboed.com>2007-07-30 12:41:58 +0000
commita086ad230eb86fc0edcaa10b73f7ddc964013c34 (patch)
tree992c2f1ead5f50c116010ab9b4b9e03792935822
parent9ace67724c2826e4412a9f10e2fd2a14584010cd (diff)
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 :)
-rw-r--r--ChangeLog5
-rw-r--r--gst/qtdemux/qtdemux.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3fedfcc6..992a02d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-30 Edward Hervey <bilboed@bilboed.com>
+
+ * gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_state_movie):
+ If the buffer was entirely clipped ... don't try sending it :)
+
2007-07-27 Wim Taymans <wim.taymans@gmail.com>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_activate_streams),
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;