<html><head></head><body>I don't understand why there is even a time parameter here. Audio has a wait flag to differentiate flush (drop) and drain (dequeue).<br>
<br>
What is the meaning of the time parameter? Shouldn't it be removed?<br><br><div class="gmail_quote">Le 3 juillet 2018 08:20:23 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">It's the same value as the hardcoded/indirect value. But it's more logical as<br>it should be a reference to timestamped pictures. It flushes any picture later<br>or equal to our internal 0, so anything not "negative".<br><br>This may keep some kind of pre-roll or negative timestamps (Matroska can have<br>this) but this patch doesn't change the current behaviour.<br>---<br> src/input/decoder.c  | 6 ++----<br> src/input/resource.c | 2 +-<br> 2 files changed, 3 insertions(+), 5 deletions(-)<br><br>diff --git a/src/input/decoder.c b/src/input/decoder.c<br>index 58ead05738..65bb1eda8d 100644<br>--- a/src/input/decoder.c<br>+++ b/src/input/decoder.c<br>@@ -151,8 +151,6 @@ struct decoder_owner<br> #define DECODER_SPU_VOUT_WAIT_DURATION   (CLOCK_FREQ/5)<br> #define BLOCK_FLAG_CORE_PRIVATE_RELOADED (1 << BLOCK_FLAG_CORE_PRIVATE_SHIFT)<br> <br>-#define VLC_TS_OLDEST  (VLC_TICK_INVALID + 1)<br>-<br> static inline struct decoder_owner *dec_get_owner( decoder_t *p_dec )<br> {<br>     return container_of( p_dec, struct decoder_owner, dec );<br>@@ -977,7 +975,7 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,<br>         msg_Dbg( p_dec, "end of video preroll" );<br> <br>         if( p_vout )<br>-            vout_Flush( p_vout, VLC_TS_OLDEST );<br>+            vout_Flush( p_vout, VLC_TICK_0 );<br>     }<br> <br>     if( p_picture->date == VLC_TICK_INVALID )<br>@@ -1465,7 +1463,7 @@ static void DecoderProcessFlush( decoder_t *p_dec )<br>     else if( p_dec->fmt_out.i_cat == VIDEO_ES )<br>     {<br>         if( p_owner->p_vout )<br>-            vout_Flush( p_owner->p_vout, VLC_TS_OLDEST );<br>+            vout_Flush( p_owner->p_vout, VLC_TICK_0 );<br>     }<br>     else if( p_dec->fmt_out.i_cat == SPU_ES )<br>     {<br>diff --git a/src/input/resource.c b/src/input/resource.c<br>index f806cfeb2c..1c55114e08 100644<br>--- a/src/input/resource.c<br>+++ b/src/input/resource.c<br>@@ -273,7 +273,7 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,<br>         else<br>         {<br>             msg_Dbg( p_resource->p_parent, "saving a free vout" );<br>-            vout_Flush( p_vout, 1 );<br>+            vout_Flush( p_vout, VLC_TICK_0 );<br>             vout_FlushSubpictureChannel( p_vout, -1 );<br> <br>             vout_configuration_t cfg = {</pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>