Mercurial > audlegacy
changeset 2089:ef095eb43578 trunk
[svn] Add playlist_get_active where required.
author | chainsaw |
---|---|
date | Mon, 11 Dec 2006 04:36:50 -0800 |
parents | db3172fb53f0 |
children | b89947411061 |
files | ChangeLog audacious/output.c |
diffstat | 2 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Dec 11 04:34:17 2006 -0800 +++ b/ChangeLog Mon Dec 11 04:36:50 2006 -0800 @@ -1,3 +1,11 @@ +2006-12-11 12:34:17 +0000 William Pitcock <nenolod@nenolod.net> + revision [3181] + - update main.c to new API + + trunk/audacious/main.c | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) + + 2006-12-11 12:30:50 +0000 William Pitcock <nenolod@nenolod.net> revision [3179] - update these files
--- a/audacious/output.c Mon Dec 11 04:34:17 2006 -0800 +++ b/audacious/output.c Mon Dec 11 04:36:50 2006 -0800 @@ -99,7 +99,7 @@ PlaylistEntry *entry; /* don't stop yet, get the seek time and playlist position first */ - pos = playlist_get_position(); + pos = playlist_get_position(playlist_get_active()); time = op->output_time(); /* reset the audio system */ @@ -113,8 +113,8 @@ g_message("waiting for audio system shutdown..."); /* wait for the playback thread to come online */ - playlist_set_position(pos); - entry = playlist_get_entry_to_play(); + playlist_set_position(playlist_get_active(), pos); + entry = playlist_get_entry_to_play(playlist_get_active()); bmp_playback_play_file(entry); while (!bmp_playback_get_playing()) @@ -124,8 +124,8 @@ } /* and signal a reseek */ - if (playlist_get_current_length() > -1 && - time <= (playlist_get_current_length())) + if (playlist_get_current_length(playlist_get_active()) > -1 && + time <= (playlist_get_current_length(playlist_get_active()))) { gint i; @@ -280,7 +280,7 @@ * not requested a stop. --nenolod */ if (ip_data.stop == FALSE && - (playlist_get_position_nolock() < playlist_get_length_nolock() - 1)) + (playlist_get_position_nolock(playlist_get_active()) < playlist_get_length_nolock(playlist_get_active()) - 1)) return; /* Sanity check. */