<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 10.00.9200.17088">
</head>
<body>
<div><font size="2" face="Arial"><span class="946450913-24092014">Hello,</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014"></span></font> </div>
<div><font size="2" face="Arial"><span class="946450913-24092014">I'm trying to do an application using pull mode in some elements.</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014"></span></font> </div>
<div><font size="2" face="Arial"><span class="946450913-24092014">For testing purpose, I wrote two filters. One filter "pullfilter" uses pull mode for its sink and push mode for its source. The other is a dispenser (wrongly named "mdispatch", based on tee),
 source pad on requests and giving buffers as pullfilter requests them.</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014"></span></font> </div>
<div><font size="2" face="Arial"><span class="946450913-24092014">This pipeline works like expected :</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014">gst-launch-1.0 fakesrc can-activate-push=false ! pullfilter ! fakesink<br>
</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014">This one also works :</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014">gst-launch-1.0 fakesrc ! queue2 ! pullfilter ! fakesink</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014"></span></font> </div>
<div><font size="2" face="Arial"><span class="946450913-24092014">With two branches, no problem :</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014">gst-launch-1.0 --gst-debug-level=3 fakesrc can-activate-push=false ! mdispatch has-chain=false name=t ! pullfilter ! fakesink t. ! pullfilter ! fakesink<br>
</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014">But when I put a queue2 in the previous pipeline, it fails :</span></font></div>
<div><font size="2" face="Arial"><span class="946450913-24092014">gst-launch-1.0 --gst-debug=pullfilter:5 fakesrc ! queue2 ! mdispatch has-chain=false name=t ! pullfilter ! fakesink t. ! pullfilter ! fakesink</div>
</span></font>
<div><font size="2" face="Arial">Setting pipeline to PAUSED ...<br>
mdispatch<span class="946450913-24092014">: </span>Pull mode not supported by peer<br>
mdispatch<span class="946450913-24092014">: </span>Push mode activated<br>
mdispatch<span class="946450913-24092014">: </span>Pull mode not supported by peer<br>
mdispatch<span class="946450913-24092014">: </span>Push mode activated</font></div>
<div><font size="2" face="Arial">0:00:00.011082003 11673  0x80958c0 WARN                GST_PADS gstpad.c:974:gst_pad_set_active:<t:sink> Failed to activate pad<br>
ERROR: Pipeline doesn't want to pause.<br>
Setting pipeline to NULL ...<br>
Freeing pipeline ...<br>
</font></div>
<div><span class="946450913-24092014"><font size="2" face="Arial">I doesn't see why it fails when setting a queue2 to the pipeline (I tested in previous pipeline if "queue2" in pull mode can works with fakesrc in push mode).</font></span></div>
<div><span class="946450913-24092014"><font size="2" face="Arial"></font></span> </div>
<div><span class="946450913-24092014"></span><span class="946450913-24092014"><font size="2" face="Arial">Is there a problem with the design ?</font></span></div>
<div><span class="946450913-24092014"><font size="2" face="Arial"></font></span> </div>
<div><span class="946450913-24092014"><font size="2" face="Arial">Thanks,</font></span></div>
<div align="left"><font size="2" face="Arial">
<p class="MsoNormal" style="MARGIN-BOTTOM: 12pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; mso-fareast-language: FR-BE">Jonathan DEMEYER
</span></b><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; mso-fareast-language: FR-BE"><br>
</span><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; mso-fareast-language: FR-BE">Software engineer</span></p>
<table class="MsoNormalTable" cellpadding="0" border="0">
<tbody>
<tr>
<td style="PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt">
<p class="MsoNormal"><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; mso-fareast-language: FR-BE"><img id="_x0000_i1025" alt="Description : MACQ Traffic & Automation" src="cid:946450913@24092014-3124" width="147" height="85"></span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; mso-fareast-language: FR-BE">
<?xml:namespace 
      prefix = "o" ns = "urn:schemas-microsoft-com:office:office" 
      />
<o:p></o:p></span></p>
</td>
<td style="PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt">
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; mso-fareast-language: FR-BE">Macq sa</span></b><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; mso-fareast-language: FR-BE"><br>
</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; mso-fareast-language: FR-BE">Rue de l'Aéronef, 2 - 1140 Bruxelles - Belgique</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; mso-fareast-language: FR-BE"><br>
</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; mso-fareast-language: FR-BE">T +32 (0) 2 610 15 87 - F +32 (0) 2 610 15 05 
</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; mso-fareast-language: FR-BE"><br>
</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; mso-fareast-language: FR-BE"><a title="mailto:anne.cappelle@macq.eu%20" href="mailto:.jonathan.demeyer@macq.eu"><span title="mailto:anne.cappelle@macq.eu%20" style="COLOR: black">jonathan.demeyer@macq.eu
</span></a>- <a title="http://www.macq.eu/" href="http://www.macq.eu/"><span title="http://www.macq.eu/" style="COLOR: black">www.macq.eu</span></a>
</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; mso-fareast-language: FR-BE"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</font></div>
<div> </div>
</body>
</html>