<div dir="ltr">code after line 405 is only executed when the player advances the playlist automatically (as far as i know)<div><br></div><div>if you hit the next button, it will be handled as request - putting it after 405 was my first intention but it didn't work out for hitting the next button.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 30, 2013 at 3:54 AM, Edward Wang <span dir="ltr"><<a href="mailto:edward.c.wang@compdigitec.com" target="_blank">edward.c.wang@compdigitec.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2013-09-29 21:40, Alex Warhawk <<a href="mailto:ax.warhawk@gmail.com" target="_blank">ax.warhawk@gmail.com</a>> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+    /* reshuffle (3932) */<br>
+    if( p_playlist->i_current_index == p_playlist->current.i_size - 1 ) {<br>
+        if( var_GetBool( p_playlist, "random" ) ) {<br>
+            PL_DEBUG( "reshuffle playlist" );<br>
+            ResetCurrentlyPlaying( p_playlist,<br>
+                                   get_current_status_item( p_playlist ) );<br>
+        }<br>
+    }<br>
</blockquote>
Is it possible to have it done at line 405 instead?<br>
<br>
> if( p_playlist->i_current_index == p_playlist->current.i_size )<br>
<br>
That way the extraneous if statement is not needed and won't affect other stuff in the playback than needed.<br>
<br>
Regards,<br>
        Edward Wang<br>
______________________________<u></u>_________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/<u></u>listinfo/vlc-devel</a><br>
</blockquote></div><br></div>