diff options
Diffstat (limited to 'gst/realmedia')
-rw-r--r-- | gst/realmedia/rademux.c | 1 | ||||
-rw-r--r-- | gst/realmedia/rmdemux.c | 2 |
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) { |