[Bug 683920] rmdemux can not set caps on its own pad
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Sep 13 18:51:46 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=683920
GStreamer | gst-plugins-ugly | 0.11.x
--- Comment #2 from zhangyanping <zhangyanping210 at yahoo.com.cn> 2012-09-14 01:51:41 UTC ---
The code is like this.
//=================
static void
gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream)
{
......
gst_pad_use_fixed_caps (stream->pad);
gst_pad_set_caps (stream->pad, stream_caps);
gst_pad_set_event_function (stream->pad,
GST_DEBUG_FUNCPTR (gst_rmdemux_src_event));
gst_pad_set_query_function (stream->pad,
GST_DEBUG_FUNCPTR (gst_rmdemux_src_query));
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_pad_set_active (stream->pad, TRUE);
gst_element_add_pad (GST_ELEMENT_CAST (rmdemux), stream->pad);
......
}
It pushs the caps event before setting the pad to active. So maybe bring
"gst_pad_set_active (stream->pad, TRUE);" before "gst_pad_set_caps
(stream->pad, stream_caps);".
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list