summaryrefslogtreecommitdiff
path: root/gst/realmedia
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-16 21:48:02 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-16 21:48:02 +0100
commit4aa8c11d859cf763ae66c89125afacdd36a996b0 (patch)
tree1eac52f99ad26d45b8346b3960ba97bb7b80f370 /gst/realmedia
parentfdfea36e93fcd6682308114998b24816108fa9a6 (diff)
don't pass random pointers to pull_range
Diffstat (limited to 'gst/realmedia')
-rw-r--r--gst/realmedia/rademux.c1
-rw-r--r--gst/realmedia/rmdemux.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c
index 82fc3a27..f6a67454 100644
--- a/gst/realmedia/rademux.c
+++ b/gst/realmedia/rademux.c
@@ -629,6 +629,7 @@ gst_real_audio_demux_loop (GstRealAudioDemux * demux)
if (demux->upstream_size > 0 && demux->offset >= demux->upstream_size)
goto eos;
+ buf = NULL;
ret = gst_pad_pull_range (demux->sinkpad, demux->offset, bytes_needed, &buf);
if (ret != GST_FLOW_OK)
diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c
index 38c6ef43..8d51ba97 100644
--- a/gst/realmedia/rmdemux.c
+++ b/gst/realmedia/rmdemux.c
@@ -345,6 +345,7 @@ gst_rmdemux_validate_offset (GstRMDemux * rmdemux)
gboolean ret = TRUE;
GstMapInfo map;
+ buffer = NULL;
flowret = gst_pad_pull_range (rmdemux->sinkpad, rmdemux->offset, 4, &buffer);
if (flowret != GST_FLOW_OK) {
@@ -837,6 +838,7 @@ gst_rmdemux_loop (GstPad * pad)
size = rmdemux->size;
}
+ buffer = NULL;
ret = gst_pad_pull_range (pad, rmdemux->offset, size, &buffer);
if (ret != GST_FLOW_OK) {
if (rmdemux->offset == rmdemux->index_offset) {