Don't need to stop audio before changing tracks. Fixes problem when selecting a new track in playlist viewer on iriver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6846 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9cedf39430
commit
0574151ee0
1 changed files with 1 additions and 8 deletions
|
@ -702,9 +702,6 @@ static int onplay_menu(int index)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
/* delete track */
|
/* delete track */
|
||||||
if (current)
|
|
||||||
audio_stop();
|
|
||||||
|
|
||||||
playlist_delete(viewer.playlist, tracks[index].index);
|
playlist_delete(viewer.playlist, tracks[index].index);
|
||||||
|
|
||||||
if (current)
|
if (current)
|
||||||
|
@ -954,16 +951,12 @@ bool playlist_viewer_ex(char* filename)
|
||||||
}
|
}
|
||||||
else if (!viewer.playlist)
|
else if (!viewer.playlist)
|
||||||
{
|
{
|
||||||
/* Stop current track and play new track */
|
/* play new track */
|
||||||
audio_stop();
|
|
||||||
playlist_start(tracks[INDEX(viewer.cursor_pos)].index, 0);
|
playlist_start(tracks[INDEX(viewer.cursor_pos)].index, 0);
|
||||||
update_playlist(false);
|
update_playlist(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Play track from playlist on disk */
|
|
||||||
audio_stop();
|
|
||||||
|
|
||||||
/* New playlist */
|
/* New playlist */
|
||||||
if (playlist_set_current(viewer.playlist) < 0)
|
if (playlist_set_current(viewer.playlist) < 0)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
Loading…
Reference in a new issue