gstreamer correct way to get ghost pad element by name
<p>GST 1.11,</p>

<p>I have created a ghost pad and confirmed it is working by the following</p>

<pre><code>gchar *ghost_pad_1_name = NULL;
ghost_pad_1_name = "myGhostPad'
ghost_pad_1 = gst_ghost_pad_new (ghost_pad_1_name, pad_src_1);

if(GST_PAD_DIRECTION(ghost_pad_1) == GST_PAD_SRC){
    printf("Ghost is SRC -&gt; correct\n"); // Correct
    }  

printf("Ghost Pad Name = %s\n",GST_ELEMENT_NAME(ghost_pad_1)); // myGhostPad
</code></pre>

<p>however trying to get the element by using the following returns NULL</p>

<pre><code>GstElement *TestGhostPad = gst_bin_get_by_name (ghost_pad_1_name);
if (!TestGhostPad){
    printf("Ghost Pad is NULL\n"); // This is called
}
if (TestGhostPad){
    printf("Ghost Pad is NOT NULL\n");
}
</code></pre>

<p>Am I using this function correctly? Is there another method to get the Ghost Pad by <code>name</code>.</p>

<p>thanks Art</p>