comparison 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
comparison
equal deleted inserted replaced
3318:6e3ae4fd65f1 3319:d4f6507cded3
212 int playing; 212 int playing;
213 gboolean error; 213 gboolean error;
214 gboolean eof; 214 gboolean eof;
215 215
216 GThread *thread; 216 GThread *thread;
217
218 GMutex *pb_ready_mutex;
219 GCond *pb_ready_cond;
220 gint pb_ready_val;
221 gint (*set_pb_ready) (InputPlayback*);
217 }; 222 };
218 223
219 struct _InputPlugin { 224 struct _InputPlugin {
220 gpointer handle; 225 gpointer handle;
221 gchar *filename; 226 gchar *filename;