summaryrefslogtreecommitdiff
path: root/gst/mxf/mxfdemux.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-16 21:47:39 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-16 21:47:39 +0100
commitbc38bc27b7890170d36752a7aab27fbbc6817587 (patch)
treec1d0ac4e24aee1604e5a07f75183433fbc7f2e23 /gst/mxf/mxfdemux.c
parented82d408b1a011e00e7bd6b2253d017d5a62ae26 (diff)
downloadgstreamer-plugins-bad-bc38bc27b7890170d36752a7aab27fbbc6817587.tar.gz
don't pass random pointers to pull_range
Diffstat (limited to 'gst/mxf/mxfdemux.c')
-rw-r--r--gst/mxf/mxfdemux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index f56c4f386..0be16b3b8 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -2032,6 +2032,7 @@ gst_mxf_demux_pull_random_index_pack (GstMXFDemux * demux)
g_assert (filesize > 4);
+ buffer = NULL;
if ((ret =
gst_mxf_demux_pull_range (demux, filesize - 4, 4,
&buffer)) != GST_FLOW_OK) {
@@ -2051,6 +2052,7 @@ gst_mxf_demux_pull_random_index_pack (GstMXFDemux * demux)
return;
}
+ buffer = NULL;
if ((ret =
gst_mxf_demux_pull_range (demux, filesize - pack_size, 16,
&buffer)) != GST_FLOW_OK) {
@@ -2692,7 +2694,7 @@ gst_mxf_demux_loop (GstPad * pad)
/* Skip run-in, which is at most 64K and is finished
* by a header partition pack */
while (demux->offset < 64 * 1024) {
- GstBuffer *buffer;
+ GstBuffer *buffer = NULL;
if ((ret =
gst_mxf_demux_pull_range (demux, demux->offset, 16,