}
if (timidity->mididata_offset < timidity->mididata_size) {
- GstBuffer *buffer;
+ GstBuffer *buffer = NULL;
gint64 size;
GST_DEBUG_OBJECT (timidity, "loading song");
switch (wildmidi->state) {
case GST_WILDMIDI_STATE_LOAD:
{
- GstBuffer *buffer;
+ GstBuffer *buffer = NULL;
GST_DEBUG_OBJECT (wildmidi, "loading song");
continue;
}
+ buf = NULL;
ret =
gst_pad_pull_range (GST_PAD (spad), -1, nframes * sizeof (gfloat),
&buf);
GstFlowReturn ret;
while (asfparse->asfinfo->broadcast ||
asfparse->parsed_packets < asfparse->asfinfo->packets_count) {
- GstBuffer *packet = NULL;
+ GstBuffer *packet;
GST_DEBUG_OBJECT (asfparse, "Parsing packet %" G_GUINT64_FORMAT,
asfparse->parsed_packets);
/* get the packet */
+ packet = NULL;
ret = gst_pad_pull_range (asfparse->sinkpad, asfparse->offset,
asfparse->asfinfo->packet_size, &packet);
if (ret != GST_FLOW_OK)
static GstFlowReturn
gst_asf_parse_pull_indexes (GstAsfParse * asfparse)
{
- GstBuffer *guid_and_size = NULL;
- GstBuffer *buf = NULL;
+ GstBuffer *guid_and_size;
+ GstBuffer *buf;
guint64 obj_size;
GstFlowReturn ret = GST_FLOW_OK;
while (1) {
+ guid_and_size = NULL;
ret = gst_pad_pull_range (asfparse->sinkpad, asfparse->offset,
ASF_GUID_OBJSIZE_SIZE, &guid_and_size);
if (ret != GST_FLOW_OK)
asfparse->offset += ASF_GUID_OBJSIZE_SIZE;
/* pull the rest of the object */
+ buf = NULL;
ret = gst_pad_pull_range (asfparse->sinkpad, asfparse->offset, obj_size,
&buf);
if (ret != GST_FLOW_OK) {
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) {
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);
SCAN_MODE mode, guint64 * rts, gint limit)
{
GstFlowReturn ret = GST_FLOW_OK;
- GstBuffer *buffer = NULL;
+ GstBuffer *buffer;
guint64 offset = *pos;
gboolean found = FALSE;
guint64 ts = 0;
to_read = demux->sink_segment.stop - offset;
/* read some data */
+ buffer = NULL;
ret = gst_pad_pull_range (demux->sinkpad, offset, to_read, &buffer);
if (G_UNLIKELY (ret != GST_FLOW_OK))
return FALSE;
SCAN_MODE mode, guint64 * rts, gint limit)
{
GstFlowReturn ret = GST_FLOW_OK;
- GstBuffer *buffer = NULL;
+ GstBuffer *buffer;
guint64 offset = *pos;
gboolean found = FALSE;
guint64 ts = 0;
offset = 0;
}
/* read some data */
+ buffer = NULL;
ret = gst_pad_pull_range (demux->sinkpad, offset, to_read, &buffer);
if (G_UNLIKELY (ret != GST_FLOW_OK))
return FALSE;
guint64 offset, guint size)
{
GstFlowReturn ret = GST_FLOW_OK;
- GstBuffer *buffer;
+ GstBuffer *buffer = NULL;
+
ret = gst_pad_pull_range (pad, offset, size, &buffer);
if (G_UNLIKELY (ret != GST_FLOW_OK)) {
GST_DEBUG_OBJECT (demux, "pull range at %" G_GUINT64_FORMAT
GST_DEBUG ("Grabbing %d => %d", i * 50 * MPEGTS_MAX_PACKETSIZE,
50 * MPEGTS_MAX_PACKETSIZE);
+ buf = NULL;
ret = gst_pad_pull_range (base->sinkpad, i * 50 * MPEGTS_MAX_PACKETSIZE,
50 * MPEGTS_MAX_PACKETSIZE, &buf);
if (G_UNLIKELY (ret != GST_FLOW_OK))
break;
case BASE_MODE_STREAMING:
{
- GstBuffer *buf;
+ GstBuffer *buf = NULL;
GST_DEBUG ("Pulling data from %" G_GUINT64_FORMAT, base->seek_offset);
offset -= 4;
while (!done && scan_offset <= length) {
+ buf = NULL;
res =
gst_pad_pull_range (base->sinkpad, offset + scan_offset,
50 * MPEGTS_MAX_PACKETSIZE, &buf);
offset -= 4;
while (!done && scan_offset < length) {
+ buf = NULL;
ret =
gst_pad_pull_range (base->sinkpad, offset + scan_offset,
50 * MPEGTS_MAX_PACKETSIZE, &buf);
/* Start scanning from now PAT offset */
while (!done) {
+ buf = NULL;
ret = gst_pad_pull_range (base->sinkpad, i * 50 * MPEGTS_MAX_PACKETSIZE,
50 * MPEGTS_MAX_PACKETSIZE, &buf);
" and the end:%" G_GINT64_FORMAT, scan_offset, total_bytes);
while ((!done) && (scan_offset < total_bytes)) {
+ buf = NULL;
ret = gst_pad_pull_range (base->sinkpad, scan_offset,
50 * MPEGTS_MAX_PACKETSIZE, &buf);
GstMapInfo map;
gsize size;
+ buf = NULL;
ret = gst_pad_pull_range (base->sinkpad,
initoff + i * 500 * base->packetsize, 500 * base->packetsize, &buf);
g_assert (filesize > 4);
+ buffer = NULL;
if ((ret =
gst_mxf_demux_pull_range (demux, filesize - 4, 4,
&buffer)) != GST_FLOW_OK) {
return;
}
+ buffer = NULL;
if ((ret =
gst_mxf_demux_pull_range (demux, filesize - pack_size, 16,
&buffer)) != GST_FLOW_OK) {
/* 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,
GstFlowReturn ret = GST_FLOW_OK;
/* ffmpeg extra data */
+ nuv->mpeg_buffer = NULL;
ret =
gst_nuv_demux_read_bytes (nuv, nuv->mpeg_data_size, TRUE,
&nuv->mpeg_buffer);
rp->offset -= size;
}
+ buffer = NULL;
ret = gst_pad_pull_range (rp->sinkpad, rp->offset, size, &buffer);
if (ret != GST_FLOW_OK) {