summaryrefslogtreecommitdiff
path: root/gst/cdxaparse
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/cdxaparse
parented82d408b1a011e00e7bd6b2253d017d5a62ae26 (diff)
downloadgstreamer-plugins-bad-bc38bc27b7890170d36752a7aab27fbbc6817587.tar.gz
don't pass random pointers to pull_range
Diffstat (limited to 'gst/cdxaparse')
-rw-r--r--gst/cdxaparse/gstcdxaparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/cdxaparse/gstcdxaparse.c b/gst/cdxaparse/gstcdxaparse.c
index dc9f949f8..8bd22c656 100644
--- a/gst/cdxaparse/gstcdxaparse.c
+++ b/gst/cdxaparse/gstcdxaparse.c
@@ -292,6 +292,7 @@ gst_cdxa_parse_loop (GstPad * sinkpad)
req = 8 + GST_CDXA_SECTOR_SIZE; /* riff chunk header = 8 bytes */
+ buf = NULL;
flow_ret = gst_pad_pull_range (cdxa->sinkpad, cdxa->offset, req, &buf);
if (flow_ret != GST_FLOW_OK) {
@@ -330,6 +331,7 @@ gst_cdxa_parse_loop (GstPad * sinkpad)
GST_DEBUG_OBJECT (cdxa, "pulling buffer at offset 0x%" G_GINT64_MODIFIER "x",
cdxa->offset);
+ buf = NULL;
flow_ret = gst_pad_pull_range (cdxa->sinkpad, cdxa->offset,
GST_CDXA_SECTOR_SIZE, &buf);