2008-02-10 20:17:33 -05:00
|
|
|
$OpenBSD: patch-src_xine-engine_audio_out_c,v 1.8 2008/02/11 01:17:33 jakemsr Exp $
|
|
|
|
--- src/xine-engine/audio_out.c.orig Sat Jan 26 17:54:05 2008
|
|
|
|
+++ src/xine-engine/audio_out.c Sun Feb 10 16:29:11 2008
|
2008-01-29 22:52:32 -05:00
|
|
|
@@ -1084,7 +1084,7 @@ static void *ao_loop (void *this_gen) {
|
2007-06-13 06:58:28 -04:00
|
|
|
in_buf->format.rate,
|
|
|
|
in_buf->format.mode) == 0 ) {
|
|
|
|
in_buf->stream->emergency_brake = 1;
|
|
|
|
- _x_message (in_buf->stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, NULL);
|
|
|
|
+ _x_message (in_buf->stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, (char *)NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2008-01-29 22:52:32 -05:00
|
|
|
@@ -1115,7 +1115,7 @@ static void *ao_loop (void *this_gen) {
|
2007-06-13 06:58:28 -04:00
|
|
|
stream = xine_list_get_value (this->streams, ite);
|
|
|
|
if( !stream->emergency_brake ) {
|
|
|
|
stream->emergency_brake = 1;
|
|
|
|
- _x_message (stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, NULL);
|
|
|
|
+ _x_message (stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, (char *)NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pthread_mutex_unlock(&this->streams_lock);
|
2008-02-10 20:17:33 -05:00
|
|
|
@@ -1247,7 +1247,7 @@ static void *ao_loop (void *this_gen) {
|
|
|
|
if( result < 0 ) {
|
|
|
|
/* device unplugged. */
|
|
|
|
xprintf(this->xine, XINE_VERBOSITY_LOG, _("write to sound card failed. Assuming the device was unplugged.\n"));
|
|
|
|
- _x_message (in_buf->stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, NULL);
|
|
|
|
+ _x_message (in_buf->stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, (char *)NULL);
|
|
|
|
|
|
|
|
pthread_mutex_lock( &this->driver_lock );
|
|
|
|
if(this->driver_open) {
|
|
|
|
@@ -1261,7 +1261,7 @@ static void *ao_loop (void *this_gen) {
|
|
|
|
in_buf->format.rate,
|
|
|
|
in_buf->format.mode) == 0) {
|
|
|
|
in_buf->stream->emergency_brake = 1;
|
|
|
|
- _x_message (in_buf->stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, NULL);
|
|
|
|
+ _x_message (in_buf->stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, (char *)NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pthread_mutex_unlock( &this->driver_lock );
|
2008-01-29 22:52:32 -05:00
|
|
|
@@ -1499,7 +1499,7 @@ static int ao_open(xine_audio_port_t *this_gen, xine_s
|
2007-06-13 06:58:28 -04:00
|
|
|
|
|
|
|
if( !ret ) {
|
|
|
|
stream->emergency_brake = 1;
|
|
|
|
- _x_message (stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, NULL);
|
|
|
|
+ _x_message (stream, XINE_MSG_AUDIO_OUT_UNAVAILABLE, (char *)NULL);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
} else {
|
2008-01-29 22:52:32 -05:00
|
|
|
@@ -2252,7 +2252,9 @@ xine_audio_port_t *_x_ao_new_port (xine_t *xine, ao_dr
|
2006-03-24 17:43:41 -05:00
|
|
|
this->audio_loop_running = 1;
|
|
|
|
|
|
|
|
pthread_attr_init(&pth_attrs);
|
|
|
|
+#if !defined(__OpenBSD__)
|
|
|
|
pthread_attr_setscope(&pth_attrs, PTHREAD_SCOPE_SYSTEM);
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
this->audio_thread_created = 1;
|
|
|
|
if ((err = pthread_create (&this->audio_thread,
|