diff src/audacious/plugin.h @ 3319:d4f6507cded3 trunk

added a system that allows input plugins to signal to the core (actually, they MUST do it) that they're ready for playback and it's safe to call their stop function; this fixes a nasty race condition that triggered on fast track-switching
author Giacomo Lozito <james@develia.org>
date Fri, 10 Aug 2007 21:58:19 +0200
parents f985357757e0
children ea806daf3ef0 b01c8d41d35b
line wrap: on
line diff
--- a/src/audacious/plugin.h	Fri Aug 10 12:52:15 2007 -0500
+++ b/src/audacious/plugin.h	Fri Aug 10 21:58:19 2007 +0200
@@ -214,6 +214,11 @@
     gboolean eof;
 
     GThread *thread;
+    
+    GMutex *pb_ready_mutex;
+    GCond *pb_ready_cond;
+    gint pb_ready_val;    
+    gint (*set_pb_ready) (InputPlayback*);
 };
 
 struct _InputPlugin {