Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207215 - =media-libs/xine-lib-1.1.9.1-(r1) audio dies when switching dvb channel
Summary: =media-libs/xine-lib-1.1.9.1-(r1) audio dies when switching dvb channel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-23 20:48 UTC by ryan breheny
Modified: 2008-08-12 20:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ryan breheny 2008-01-23 20:48:50 UTC
Audio plays back when i first start xine-ui or gxine but when i switch dvb channel the audio disappears , i have spoken with a xine dev who says this patch will fix it

diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
--- a/src/xine-engine/audio_out.c
+++ b/src/xine-engine/audio_out.c
@@ -1619,6 +1619,7 @@ static void ao_close(xine_audio_port_t *
       }
       /* make sure there are no more buffers on queue */
       fifo_wait_empty(this->out_fifo);
+      ao_set_property(this_gen, AO_PROP_DISCARD_BUFFERS, 0);
     }
 
     pthread_mutex_lock( &this->driver_lock );

Reproducible: Always

Steps to Reproduce:
1.start xine-ui or gxine
2.select dvb
3.change channel

Actual Results:  
loss of audio 

Expected Results:  
played back audio
Comment 1 Paul Taylor 2008-01-25 08:19:42 UTC
Confirmed; the supplied patch works for me.  Thanks!
Comment 2 Paul Taylor 2008-01-25 08:39:43 UTC
An update:  the same loss of sound occurs when changing between media types (e.g. DVB -> DVD or vice versa.)  I suspect that a similar statement needs to be added elsewhere in the code to fix this problem.
Comment 3 Alexis Ballier gentoo-dev 2008-01-31 00:33:30 UTC
hmm in xine 1.1.10 changelog there is that:
* Fix a possible crash on channel change in the DVB plugin.

could anyone confirm this is now fixed ?
Comment 4 Alexis Ballier gentoo-dev 2008-08-12 20:54:22 UTC
lets assume this is fixed since I can see some code that looks like this patch in 1.1.14