<div><span class="496544919-01072008"><font size="2" face="Arial">Hi,</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">I&#39;m trying to 
understand how the GstQueue and gstplaybasebin buffering works but I have a 
problem.</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">Here is my 
understanding using an example:</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">my min_threshold is 
35% and upper threshold is 95% (following what gstplaybasebin 
uses)</font></span></div>
<div><span class="496544919-01072008"><font size="2" face="Arial">0------35----------95-----100</font></span></div>
<div><span class="496544919-01072008"><font size="2" face="Arial">I&nbsp;start with no data 
at 0, this fire a underrun: this mean playback is stopped but data continues to 
fill the queue. Data is displayed on the bus that there is 
buffering.</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">When it gets to 95%, 
if fires an overrun event and no more buffering is shown.</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">Threshold is set 
back to 35% and playback is resumed.</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">Correct me if you 
see anything wrong.&nbsp;</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">What I don&#39;t 
understand is how&nbsp;it works when it gets to the end of the 
stream.</font></span></div>
<div><span class="496544919-01072008"><font size="2" face="Arial">The buffer will go 
down to 35% has no more data is flowing in. But how will the rest of the data 
will be outputed if playback is stopped because it encountered the lower 
threshold? I probably missed something while browsing the source code but can&#39;t 
find why it works.</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">Thanks,</font></span></div>
<div><span class="496544919-01072008"></span>&nbsp;</div>
<div><span class="496544919-01072008"><font size="2" face="Arial">IPB</font></span></div>