+2006-10-10 Wim Taymans <wim@fluendo.com>
+
+ * gst/realmedia/rdtdepay.c: (gst_rdt_depay_base_init),
+ (gst_rdt_depay_init), (gst_rdt_depay_setcaps),
+ (gst_rdt_depay_chain), (gst_rdt_depay_change_state):
+ Change caps to x-rdt, because it's not x-rtp.
+
+ * gst/realmedia/rmdemux.c: (gst_rmdemux_add_stream),
+ (gst_rmdemux_parse_mdpr), (gst_rmdemux_parse_packet),
+ (gst_rmdemux_plugin_init):
+ Activate pad before adding to the element.
+ Return the combined stream return values after pad_alloc.
+
2006-10-10 Wim Taymans <wim@fluendo.com>
* ext/mpeg2dec/gstmpeg2dec.c: (handle_slice):
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("application/x-rtp, "
+ GST_STATIC_CAPS ("application/x-rdt, "
"media = (string) \"application\", "
"clock-rate = (int) [1, MAX ], "
"encoding-name = (string) \"x-real-rdt\""
GST_DEBUG_OBJECT (rmdemux, "adding pad %s with caps %" GST_PTR_FORMAT
", stream_id=%d", GST_PAD_NAME (stream->pad), stream_caps, stream->id);
- gst_element_add_pad (GST_ELEMENT (rmdemux), stream->pad);
+ gst_pad_set_active (stream->pad, TRUE);
+ gst_element_add_pad (GST_ELEMENT_CAST (rmdemux), stream->pad);
gst_pad_push_event (stream->pad,
gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, (gint64) 0,
cret = gst_rmdemux_combine_flows (rmdemux, stream, ret);
if (ret != GST_FLOW_OK)
- goto beach;
+ goto alloc_failed;
memcpy (GST_BUFFER_DATA (buffer), (guint8 *) data, packet_size);
GST_BUFFER_TIMESTAMP (buffer) = timestamp;
"data packet", id);
return GST_FLOW_OK;
}
+alloc_failed:
+ {
+ GST_DEBUG_OBJECT (rmdemux, "pad alloc returned %d", ret);
+ return cret;
+ }
}
gboolean