changeset 154:6dc4483b4c4c trunk

[svn] Don't crash if there's no handler for pausing.
author nenolod
date Sat, 12 Nov 2005 14:38:19 -0800
parents 37882ab04091
children 2746c4cadd07
files audacious/playback.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/playback.c	Sat Nov 12 14:34:04 2005 -0800
+++ b/audacious/playback.c	Sat Nov 12 14:38:19 2005 -0800
@@ -132,7 +132,8 @@
     else
         playstatus_set_status(mainwin_playstatus, STATUS_PLAY);
 
-    get_current_input_plugin()->pause(ip_data.paused);
+    if (get_current_input_plugin()->pause)
+        get_current_input_plugin()->pause(ip_data.paused);
 }
 
 void