I can't automatically connect sink plugin using playbin2
hero88
shlee7708 at naver.com
Tue Jan 20 01:14:13 PST 2015
I made mp3 decoder/ pcm plugin.
It works well, when it is connected using gst-launch.
but when using the playbin2, it cannot be connected to pcm sink.
"are_final_caps" return ture, so decodebin2 stop to find next plugin.
And src cap of mp3 decoder is defined as below.
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE
("mp3-decoder",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (
"audio/x-raw-int, "
"rate = (int) {8000, 11025, 12000, 16000, 22050, 24000, 32000,
44100, 48000}, "
"channels = (int) [1, 2], "
"width = (int) {8, 16}, "
"signed = (boolean) {true, false} "
)
);
analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
GstCaps * caps, GstDecodeChain * chain)
{
/* 1.a if autoplug-continue is FALSE or caps is a raw format, goto
pad_is_final */
if (are_final_caps (dbin, caps))
goto expose_pad;
}
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/I-can-t-automatically-connect-sink-plugin-using-playbin2-tp4670354.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list