title: GStreamer pipeline with Tee including two sink fails
body: <p>Trying to implement GStreamer pipeline with Tee using following elements.</p>
  
  <pre><code>gst_bin_add_many(GST_BIN (pipeline), &lt;rpicamsrc&gt;, &lt;capsfilter&gt;, &lt;h264parse&gt;, tee, &lt;queue&gt;, &lt;rtph264pay&gt;, &lt;fakesink&gt;, &lt;queue&gt;, &lt;avdec_h264&gt;, &lt;videoconvert&gt;, &lt;capsfilter&gt;, &lt;customplugin&gt;, &lt;fakesink&gt;, nullptr);
  </code></pre>
  
  <p>For better understanding provided the element names. The purpose is to create Tee pipeline as follows:</p>
  
  <pre><code>rpicamsrc ! capsfilter ! h264parse ! tee name=t t. ! queue ! rtph264pay ! fakesink t. ! queue ! avdec_h264 ! videoconvert ! capsfilter ! customplugin ! fakesink
  </code></pre>
  
  <p>But it fails always and doesn't report any error. But no video frames are captured. After some testing identified that fails for even this simple pipeline:</p>
  
  <pre><code>gst_element_link_many ( &lt;rpicamsrc&gt;, &lt;capsfilter&gt;, &lt;h264parse&gt;, &lt;rtph264pay&gt;, &lt;fakesink&gt;, nullptr))
  </code></pre>
  
  <p>Interesting is if I remove second <em>fakesink</em> from that above <em>gst_bin_add_many</em> line of code it works. Not sure what's the problem with this. Tried to use a different sink like autovideosink but no luck. When it fails it doesn't receive GST message type <em>GST_MESSAGE_ASYNC_DONE</em> in gst bus, but for success case it does. Gets <em>GST_STREAM_STATUS_TYPE_CREATE</em>, <em>GST_STREAM_STATUS_TYPE_ENTER</em> and <em>GST_MESSAGE_STREAM_START</em> for both failure and success case. What I am doing wrong, any ideas?</p>