<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello...<br><br>I tested gstbin..<br><br>gst-launch-0.10 audiotestsrc ! queue ! audioconvert ! { vorbisenc ! oggmux } ! filesink location=audio.ogg<br>is successed...<br><br>but...below is <br>Error: Internal data flow error. (gstbasesrc.c(2234): gst_base_src_loop (): /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0:<br>streaming task paused, reason not-linked (-1))<br><br><br><br>static GstElement *make_encoder (void)<br>{<br> GstElement *result;<br> GstElement *codec;<br> GstElement *mux;<br> GstPad *pad;<br> GstCaps *caps;<br><br> /* create result bin */<br> result = gst_bin_new(NULL);<br> g_assert(result);<br><br> /* create elements */<br> codec =
gst_element_factory_make("vorbisenc", NULL);<br> g_assert(codec);<br><br> mux = gst_element_factory_make("oggmux", NULL);<br> g_assert(mux);<br><br> /* add elements to result bin */<br> gst_bin_add(GST_BIN(result), codec);<br> gst_bin_add(GST_BIN(result), mux);<br><br> /* link elements */<br> gst_element_link_pads(codec, "src", mux, "sink");<br><br> /* ghost src and sink pads */<br> pad = gst_element_get_static_pad(codec, "sink");<br> gst_element_add_pad(result, gst_ghost_pad_new("sink", pad));<br> gst_object_unref(pad);<br><br> pad = gst_element_get_static_pad(mux, "src");<br> gst_element_add_pad(result, gst_ghost_pad_new("src", pad));<br> gst_object_unref(pad);<br><br>
return result;<br>}<br><br><br>static GstElement *make_pipeline(void)<br>{<br> GstElement *result;<br> GstElement *audiosrc;<br> GstElement *queue;<br> GstElement *aconv;<br> GstElement *sink;<br> GstElement *encoder;<br><br> result = gst_pipeline_new(NULL);<br> g_assert(result);<br><br> /* create various elements */<br> audiosrc = gst_element_factory_make("audiotestsrc", NULL);<br> g_assert(audiosrc);<br><br> queue = gst_element_factory_make("queue", NULL);<br> g_assert(queue);<br><br> aconv = gst_element_factory_make("audioconvert", NULL);<br> g_assert(aconv);<br><br><br> sink = gst_element_factory_make("filesink", NULL);<br> g_object_set(sink,
"location", "audio.ogg", NULL);<br> g_assert(sink);<br><br> /* add elements */<br> gst_bin_add(GST_BIN(result), audiosrc);<br> gst_bin_add(GST_BIN(result), queue);<br> gst_bin_add(GST_BIN(result), aconv);<br> gst_bin_add(GST_BIN(result), sink);<br><br> encoder = make_encoder();<br><br> gst_bin_add(GST_BIN(result), encoder);<br><br> /* link elements */<br> gst_element_link_pads(audiosrc, "src", queue, "sink");<br> gst_element_link_pads(queue, "src", aconv, "sink");<br> gst_element_link_pads(aconv, "src", encoder, "sink");<br> gst_element_link_pads(encoder, "src", sink, "sink");<br><br> gst_element_set_state(result, GST_STATE_READY);<br><br> return result;<br>}<br><br><br>Where is
incorrect?<br><br>Thanks..<br><br></td></tr></table><br>
<hr size=1>
<p style="color:#808080;font:12px dotum;margin:0;"><b>180° 달라진 야후! 메일</b><br>
두둥! <a href="http://us.rd.yahoo.com/mail_kr/taglines/mail4/*http://kr.content.mail.yahoo.com/cgland">새로운 야후! 메일</a>에서는 메시지를 여기저기 끌어다 놓을 수 있답니다.</p><img id="mail-read-receipt" src="http://kr.rr.mail.yahoo.com/beacon?from=revizes%40yahoo.co.kr&to=gstreamer-devel%40lists.sourceforge.net&subj=Z3N0YmluIHRlc3QuLi4%3D&sent=1230569490&sig=hboBUx2QYh.WhZC8FknxgDidJgY-" width="0" height="0">