<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    gst_element_add_pad's "pad" argument is "transfer full":<br>
    <br>
<a class="moz-txt-link-freetext" href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-add-pad">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-add-pad</a><br>
    <br>
    This means that when you call it, the element becomes the owner of
    the pad, and you don't need to worry about it anymore (unless you
    want to, in which case you can ref the pad before calling that
    function).<br>
    <br>
    <div class="moz-cite-prefix">On 11/20/2013 02:44 AM, Yogesh Tyagi
      wrote:<br>
    </div>
    <blockquote
cite="mid:CADL-HDiGU=SOt4wWt6M=4OX5sLsohbwPVVLPEOJFDAEKZUEuOw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>Is it not required to remove element's sink pad using
          "gst_element_remove_pad" function. I am getting following
          error:</div>
        <div><br>
        </div>
        <div>
          <div>(im_gst_play:3650): GLib-GObject-WARNING **: invalid
            uninstantiatable type `(null)' in cast to `GstPad'</div>
          <div><br>
          </div>
          <div>(im_gst_play:3650): GStreamer-CRITICAL **:
            gst_element_remove_pad: assertion `GST_IS_PAD (pad)' failed</div>
        </div>
        <div><br>
        </div>
        <div>on calling </div>
        <div><br>
        </div>
        <div>gst_element_remove_pad(GST_ELEMENT_CAST(demux),
          GST_PAD(smd_element->sink_pad);<br>
        </div>
        <div><br>
        </div>
        <div>from demux elements's finalize method.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Yogesh</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>