diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-15 23:54:47 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-15 23:54:47 +0000 | 
| commit | 6439c43376df98aab3cfb9cdcde0c3c0bfd2a367 (patch) | |
| tree | f8027afe70d3f239855afc0fe1d5041bb29ba52c | |
| parent | f32ff2b9a45f486db8a7b3789a6be6ce766723df (diff) | |
Fix io watch flags for sco channel
| -rw-r--r-- | audio/headset.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/audio/headset.c b/audio/headset.c index 1112f5b4..3714989b 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -572,7 +572,10 @@ static gboolean sco_connect_cb(GIOChannel *chan, GIOCondition cond,  	hs->sco = chan;  	hs->pending_connect->io = NULL; -	flags = hs->audio_output ? G_IO_IN : 0; +	flags = G_IO_ERR | G_IO_HUP | G_IO_NVAL; +	if (hs->audio_output) +		flags |= G_IO_IN; +  	g_io_add_watch(hs->sco, flags, sco_input_to_audio_output_cb, hs);  	if (hs->pending_connect->msg) { | 
