Commit d587aa48 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

playlist: don't set current_status to NULL when a file or the playlist ends....

playlist: don't set current_status to NULL when a file or the playlist ends. It is our starting point for the next play.

Fixes #1748
Was broken in [7f717d69]
parent 643ca7ef
...@@ -380,8 +380,6 @@ check_input: ...@@ -380,8 +380,6 @@ check_input:
p_playlist->gc_date = mdate(); p_playlist->gc_date = mdate();
p_playlist->b_cant_sleep = true; p_playlist->b_cant_sleep = true;
set_current_status_item( p_playlist, NULL );
i_activity= var_GetInteger( p_playlist, "activity" ); i_activity= var_GetInteger( p_playlist, "activity" );
var_SetInteger( p_playlist, "activity", i_activity - var_SetInteger( p_playlist, "activity", i_activity -
DEFAULT_INPUT_ACTIVITY ); DEFAULT_INPUT_ACTIVITY );
...@@ -449,7 +447,6 @@ check_input: ...@@ -449,7 +447,6 @@ check_input:
const bool b_gc_forced = p_playlist->status.i_status != PLAYLIST_STOPPED; const bool b_gc_forced = p_playlist->status.i_status != PLAYLIST_STOPPED;
p_playlist->status.i_status = PLAYLIST_STOPPED; p_playlist->status.i_status = PLAYLIST_STOPPED;
set_current_status_item( p_playlist, NULL );
/* Collect garbage */ /* Collect garbage */
PL_UNLOCK; PL_UNLOCK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment