# HG changeset patch # User Giacomo Lozito # Date 1186396703 -7200 # Node ID d899694663a7c0af7f7f5e5e84fd127e2fbbde8e # Parent 6374d66ee623f1a9a120a3e6b55a983d3322c7ca in playback_stop, do not assume that get_written_time will be always > 0, some plugins do not write to output at all diff -r 6374d66ee623 -r d899694663a7 src/audacious/playback.c --- a/src/audacious/playback.c Sun Aug 05 20:14:53 2007 -0500 +++ b/src/audacious/playback.c Mon Aug 06 12:38:23 2007 +0200 @@ -188,7 +188,8 @@ { if (playback_get_paused() == TRUE) { - output_flush(get_written_time()); /* to avoid noise */ + if (get_written_time() > 0) + output_flush(get_written_time()); /* to avoid noise */ playback_pause(); } @@ -257,6 +258,8 @@ gboolean playback_play_file(PlaylistEntry *entry) { + InputPlayback *playback; + g_return_val_if_fail(entry != NULL, FALSE); if (!get_current_output_plugin()) {