diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2004-04-16 16:34:22 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2004-04-16 16:34:22 +0000 |
commit | c2657bde789251c0b8e120861edb3f4f9989fc89 (patch) | |
tree | 9ad4058f123c0c0194ad4078dd8115a87354aadc /src/xine-engine/xine_internal.h | |
parent | 44c0a772dc78cd298fd9c64db496179b6e2efdb6 (diff) | |
download | xine-lib-c2657bde789251c0b8e120861edb3f4f9989fc89.tar.gz xine-lib-c2657bde789251c0b8e120861edb3f4f9989fc89.tar.bz2 |
- flush the events queue before returning from an open() so that the front-ends
can receive error events before the end of xine_open()
CVS patchset: 6410
CVS date: 2004/04/16 16:34:22
Diffstat (limited to 'src/xine-engine/xine_internal.h')
-rw-r--r-- | src/xine-engine/xine_internal.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xine-engine/xine_internal.h b/src/xine-engine/xine_internal.h index 7638939e5..081baf9c9 100644 --- a/src/xine-engine/xine_internal.h +++ b/src/xine-engine/xine_internal.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_internal.h,v 1.155 2004/03/23 22:54:32 valtri Exp $ + * $Id: xine_internal.h,v 1.156 2004/04/16 16:34:22 hadess Exp $ * */ @@ -178,6 +178,7 @@ struct xine_event_queue_s { xine_list_t *events; pthread_mutex_t lock; pthread_cond_t new_event; + pthread_cond_t events_processed; xine_stream_t *stream; pthread_t *listener_thread; xine_event_listener_cb_t callback; @@ -338,6 +339,11 @@ void _x_handle_stream_end (xine_stream_t *stream, int non_user); int _x_message(xine_stream_t *stream, int type, ...); +/* flush the message queues */ + +void _x_flush_events_queues (xine_stream_t *stream); + + /* find and instantiate input and demux plugins */ input_plugin_t *_x_find_input_plugin (xine_stream_t *stream, const char *mrl); |