[gst-devel] Questions about gstreamer "hello world"

Peter Cai newptcai at gmail.com
Tue Oct 13 19:29:40 CEST 2009


1.  In on_pad_added, the code just blinded link demuxer and decoder, what if
there are more than one source sink dynamically added to dexmuxer? Does that
work correctly?

static void
on_pad_added (GstElement *element,
              GstPad     *pad,
              gpointer    data)
{
  GstPad *sinkpad;
  GstElement *decoder = (GstElement *) data;

  /* We can now link this pad with the vorbis-decoder sink pad */
  g_print ("Dynamic pad created, linking demuxer/decoder\n");

  sinkpad = gst_element_get_static_pad (decoder, "sink");

  gst_pad_link (pad, sinkpad);

  gst_object_unref (sinkpad);
}


==================

2. What dose converter do?

-- 
look to the things around you,the immediate world around you, if you are
alive,it will mean something to you ——Paul Strand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20091014/2efd7e61/attachment.htm>


More information about the gstreamer-devel mailing list