+2005-08-04 Edward Hervey <edward@fluendo.com>
+
+ * gst/avi/gstavidemux.c: (gst_avi_demux_reset),
+ (gst_avi_demux_parse_stream), (gst_avi_demux_process_next_entry):
+ You need to allocatate (len+1) characters to store a len size string.
+ Also don't stop the processing task if the output pad is not linked.
+
2005-08-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/gconf/gstgconfaudiosink.c: (gst_gconf_audio_sink_reset),
for (i = 0; i < avi->num_streams; i++) {
g_free (avi->stream[i].strh);
g_free (avi->stream[i].strf.data);
- g_free (avi->stream[i].name);
+ if (avi->stream[i].name)
+ g_free (avi->stream[i].name);
if (avi->stream[i].initdata)
gst_buffer_unref (avi->stream[i].initdata);
if (avi->stream[i].extradata)
break;
case GST_RIFF_TAG_strn:
g_free (stream->name);
- stream->name = g_new (gchar, GST_BUFFER_SIZE (sub));
+ stream->name = g_new (gchar, GST_BUFFER_SIZE (sub) + 1);
memcpy (stream->name, GST_BUFFER_DATA (sub), GST_BUFFER_SIZE (sub));
stream->name[GST_BUFFER_SIZE (sub)] = '\0';
gst_buffer_unref (sub);
GST_TIME_FORMAT " on pad %s",
GST_BUFFER_SIZE (buf), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)),
gst_pad_get_name (stream->pad));
- if ((res = gst_pad_push (stream->pad, buf)) != GST_FLOW_OK)
+ if (!((res = gst_pad_push (stream->pad, buf)) & (GST_FLOW_OK
+ || GST_FLOW_NOT_LINKED)))
return res;
processed = TRUE;
}