<div dir="ltr">Hi, <div><br></div><div>line 85</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">gst_element_release_request_pad</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre"> (tee, tee_q2_pad);</span></blockquote><div>was it supposed to be tee_q1_pad. Notice that when you invoke gst_element_release_request_pad you are effectively deleting your request pad from the tee element. Or at least that's what I interpreted by the explanation given on gst_element_remove_pad()</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p style="max-width:60em;color:rgb(0,0,0);font-family:cantarell,sans-serif;font-size:medium">Removes <span class=""><code>pad</code></span> from <span class=""><code>element</code></span> . <span class=""><code>pad</code></span> will be destroyed if it has not been referenced elsewhere using <a class="" href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstObject.html#gst-object-unparent" title="gst_object_unparent ()" style="text-decoration:none;color:rgb(52,101,164)"><code class="">gst_object_unparent()</code></a>.</p><p style="max-width:60em;color:rgb(0,0,0);font-family:cantarell,sans-serif;font-size:medium">This function is used by plugin developers and should not be used by applications. <b>Pads that were dynamically requested from elements with <a class="" href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-request-pad" title="gst_element_request_pad ()" style="text-decoration:none;color:rgb(52,101,164)"><code class="">gst_element_request_pad()</code></a> should be released with the <a class="" href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-release-request-pad" title="gst_element_release_request_pad ()" style="text-decoration:none;color:rgb(52,101,164)"><code class="">gst_element_release_request_pad()</code></a> function instead.</b></p></blockquote><div>But since tee_q2_pad is not pointing to anything at this point you should only see a couple of warnings.  </div><div><br></div><div>line 86</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">gst_object_unref</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre"> (tee_q1_pad);</span></blockquote><div>You unref the tee pad 1 before linking in line 93 </div><div><br></div><div>line 87</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">gst_object_unref</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre"> (tee_q2_pad);</span></blockquote><div>tee_q2_pad wasn't allocated at this point </div><div><br></div><div>Basically lines 85 to 87 should be deleted and I'm under the impression that lines 109 and 110 are useless. Once you unref the pipeline, everything inside it should be unreffed as well. </div><div><br></div><div>Also, try to set the sync property of the autovideosink element to false and see what happens.</div><div><br></div><div>Cheers, </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-08 17:57 GMT+01:00 Forzaferrarileo <span dir="ltr"><<a href="mailto:leonardo.ferroro@gmail.com" target="_blank">leonardo.ferroro@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi , I'm using tee to stream and record , but there's no data flow to the<br>
sinks, only the first frame is shown.<br>
<br>
I linked my code below<br>
<br>
<a href="https://gist.github.com/Forzaferrarileo/885abf8e6166c9f2736a" target="_blank">https://gist.github.com/Forzaferrarileo/885abf8e6166c9f2736a</a><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Tee-pipeline-stall-on-pause-tp4670157.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Tee-pipeline-stall-on-pause-tp4670157.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>