Bug 209859

Summary: no sound after opening the same video twice
Product: [Frameworks and Libraries] Phonon Reporter: my.bugreports
Component: Xine backendAssignee: Harald Sitter <sitter>
Status: RESOLVED NOT A BUG    
Severity: normal CC: der.stefon, erik.esterer, martin.sandsmark, myriam, sitter, tdfischer
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description my.bugreports 2009-10-08 12:33:54 UTC
Version:           2.0 (using 4.3.1 (KDE 4.3.1), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.30-1-686

Do this to reproduce the bug: Open a video with dragonplayer, then open another video. After this open the first video again and dragonplayer won't give you any sound output anymore. You have to close and start dragonplayer to hear sound again.
All of this has to be in the same window of dragonplayer, you don't have to finish watching the video.

I installed dragonplayer-dbg and I've attached the output. If you need more information don't hesitate to contact me.

-- Output
dragonplayer: BEGIN: Dragon::MainWindow::MainWindow() 
dragonplayer: BEGIN: Dragon::VideoWindow::VideoWindow(QWidget*) 
dragonplayer: END__: Dragon::VideoWindow::VideoWindow(QWidget*) - Took 0.43s 
dragonplayer: BEGIN: void Dragon::MainWindow::setupActions() 
dragonplayer: END__: void Dragon::MainWindow::setupActions() - Took 0.0028s 
dragonplayer: END__: Dragon::MainWindow::MainWindow() - Took 0.49s 
dragonplayer:  registering root?  true 
dragonplayer:  Stopped state 
dragonplayer:  updated actions 
dragonplayer:  updated menus 
dragonplayer:  set titles  
dragonplayer:  seekable changed to  false 
dragonplayer: BEGIN: bool Dragon::VideoWindow::load(const KUrl&) 
dragonplayer: BEGIN: void Dragon::VideoWindow::eject() 
dragonplayer: END__: void Dragon::VideoWindow::eject() - Took 0.00011s 
dragonplayer:    detected mimetype:  "video/x-msvideo" 
dragonplayer:     update recent files list  
dragonplayer: BEGIN: bool Dragon::VideoWindow::play(qint64) 
dragonplayer:      Does this media have Video stream?  false 
dragonplayer: END__: bool Dragon::VideoWindow::play(qint64) - Took 0.081s 
dragonplayer: END__: bool Dragon::VideoWindow::load(const KUrl&) - Took 0.17s 
dragonplayer:  hasVideo changed 
dragonplayer:  seekable changed to  true 
dragonplayer: BEGIN: void Dragon::VideoWindow::updateChannels() 
dragonplayer: BEGIN: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) - Took 9.7e-05s 
dragonplayer:    the text is: " "`" " and index  264111049 
dragonplayer: BEGIN: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) - Took 0.00013s 
dragonplayer: END__: void Dragon::VideoWindow::updateChannels() - Took 0.0008s 
dragonplayer: BEGIN: void Dragon::VideoWindow::updateChannels() 
dragonplayer: BEGIN: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) - Took 9e-05s 
dragonplayer:    the text is: " "`" " and index  264111049 
dragonplayer: BEGIN: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) - Took 0.00011s 
dragonplayer: END__: void Dragon::VideoWindow::updateChannels() - Took 0.00067s 
dragonplayer:  metaDataChanged 
dragonplayer:  set titles  
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Loading"  to  "Stopped" 
dragonplayer:    Stopped state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0016s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Stopped"  to  "Buffering" 
dragonplayer:    Buffering state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0012s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Buffering"  to  "Playing" 
dragonplayer: BEGIN: void Dragon::VideoWindow::refreshXineStream() 
dragonplayer:      value property  QVariant::void* 
dragonplayer: END__: void Dragon::VideoWindow::refreshXineStream() - Took 0.0002s 
dragonplayer: BEGIN: void Dragon::VideoWindow::updateChannels() 
dragonplayer: BEGIN: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) - Took 9.5e-05s 
dragonplayer:      the text is: " "²µá³" " and index  264111049 
dragonplayer: BEGIN: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) - Took 0.00014s 
dragonplayer: END__: void Dragon::VideoWindow::updateChannels() - Took 0.00075s 
dragonplayer:    adjusting size to video resolution 
dragonplayer:    Playing state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0095s 
dragonplayer:  URL empty in MainWindow::playDialogResult() 
dragonplayer:  stop cursorTimer 
dragonplayer: BEGIN: bool Dragon::MainWindow::open(const KUrl&) 
dragonplayer:    KUrl("file:///home/erik/The L Word - Season 5 (gremster)/The L Word%20 - S05E06 - Lights! Camera! Action.avi") 
dragonplayer: BEGIN: bool Dragon::VideoWindow::load(const KUrl&) 
dragonplayer: BEGIN: void Dragon::VideoWindow::eject() 
dragonplayer:        trying to fetch subtitle information 
dragonplayer:        fetched subtitle information 
dragonplayer: END__: void Dragon::VideoWindow::eject() - Took 0.0043s 
dragonplayer:      detected mimetype:  "video/x-msvideo" 
dragonplayer:       update recent files list  
dragonplayer: BEGIN: bool Dragon::VideoWindow::play(qint64) 
dragonplayer:        Does this media have Video stream?  true 
dragonplayer: END__: bool Dragon::VideoWindow::play(qint64) - Took 0.00054s 
dragonplayer: END__: bool Dragon::VideoWindow::load(const KUrl&) - Took 0.011s 
dragonplayer:    Initial offset is  1676969 
dragonplayer: BEGIN: void Dragon::VideoWindow::setAudioChannel(int) 
dragonplayer:      using index:  19627912  returned desc has index:  -1 
dragonplayer: END__: void Dragon::VideoWindow::setAudioChannel(int) - Took 0.00026s 
dragonplayer: BEGIN: void Dragon::VideoWindow::setSubtitle(int) 
dragonplayer:      using index:  19627912  returned desc has index:  -1 
dragonplayer: END__: void Dragon::VideoWindow::setSubtitle(int) - Took 0.00017s 
dragonplayer: BEGIN: bool Dragon::VideoWindow::play(qint64) 
dragonplayer: BEGIN: void Dragon::VideoWindow::seek(qint64) 
dragonplayer: END__: void Dragon::VideoWindow::seek(qint64) - Took 0.00011s 
dragonplayer:      Does this media have Video stream?  true 
dragonplayer: END__: bool Dragon::VideoWindow::play(qint64) - Took 0.00049s 
dragonplayer: END__: bool Dragon::MainWindow::open(const KUrl&) - Took 0.03s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Playing"  to  "Stopped" 
dragonplayer:    Stopped state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.014s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Stopped"  to  "Loading" 
dragonplayer:    Loading state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0016s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Loading"  to  "Stopped" 
dragonplayer:    Stopped state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0016s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Stopped"  to  "Buffering" 
dragonplayer:    Buffering state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0024s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Buffering"  to  "Paused" 
dragonplayer:    Paused state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.003s 
dragonplayer:  stop cursorTimer 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Paused"  to  "Playing" 
dragonplayer: BEGIN: void Dragon::VideoWindow::refreshXineStream() 
dragonplayer:      value property  QVariant::void* 
dragonplayer: END__: void Dragon::VideoWindow::refreshXineStream() - Took 9.8e-05s 
dragonplayer: BEGIN: void Dragon::VideoWindow::updateChannels() 
dragonplayer: BEGIN: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) - Took 8.3e-05s 
dragonplayer:      the text is: " "`rd" " and index  19627913 
dragonplayer: BEGIN: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) - Took 7.8e-05s 
dragonplayer: END__: void Dragon::VideoWindow::updateChannels() - Took 0.00063s 
dragonplayer:    adjusting size to video resolution 
dragonplayer:    Playing state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0048s 
dragonplayer: BEGIN: bool Dragon::MainWindow::open(const KUrl&) 
dragonplayer:    KUrl("file:///home/erik/The L Word - Season 5 (gremster)/The L Word%20 - S05E01 - LGB Tease.avi") 
dragonplayer: BEGIN: bool Dragon::VideoWindow::load(const KUrl&) 
dragonplayer: BEGIN: void Dragon::VideoWindow::eject() 
dragonplayer:        trying to fetch subtitle information 
dragonplayer:        fetched subtitle information 
dragonplayer: END__: void Dragon::VideoWindow::eject() - Took 0.0043s 
dragonplayer:      detected mimetype:  "video/x-msvideo" 
dragonplayer:       update recent files list  
dragonplayer: BEGIN: bool Dragon::VideoWindow::play(qint64) 
dragonplayer:        Does this media have Video stream?  true 
dragonplayer: END__: bool Dragon::VideoWindow::play(qint64) - Took 0.00038s 
dragonplayer: END__: bool Dragon::VideoWindow::load(const KUrl&) - Took 0.011s 
dragonplayer:    Initial offset is  3260 
dragonplayer: BEGIN: void Dragon::VideoWindow::setAudioChannel(int) 
dragonplayer:      using index:  264111048  returned desc has index:  264111048 
dragonplayer: END__: void Dragon::VideoWindow::setAudioChannel(int) - Took 0.084s 
dragonplayer: BEGIN: void Dragon::VideoWindow::setSubtitle(int) 
dragonplayer:      using index:  264111048  returned desc has index:  264111048 
dragonplayer: END__: void Dragon::VideoWindow::setSubtitle(int) - Took 0.00036s 
dragonplayer: BEGIN: bool Dragon::VideoWindow::play(qint64) 
dragonplayer: BEGIN: void Dragon::VideoWindow::seek(qint64) 
dragonplayer: END__: void Dragon::VideoWindow::seek(qint64) - Took 0.00013s 
dragonplayer:      Does this media have Video stream?  true 
dragonplayer: END__: bool Dragon::VideoWindow::play(qint64) - Took 0.00065s 
dragonplayer: END__: bool Dragon::MainWindow::open(const KUrl&) - Took 0.098s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Playing"  to  "Stopped" 
dragonplayer:    Stopped state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0025s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Stopped"  to  "Loading" 
dragonplayer:    Loading state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0011s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Loading"  to  "Stopped" 
dragonplayer:    Stopped state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0028s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Stopped"  to  "Buffering" 
dragonplayer:    Buffering state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0019s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Buffering"  to  "Paused" 
dragonplayer:    Paused state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0027s 
dragonplayer: BEGIN: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) 
dragonplayer:    chapters:  0  titles:  0 
dragonplayer:    going from  "Paused"  to  "Playing" 
dragonplayer: BEGIN: void Dragon::VideoWindow::refreshXineStream() 
dragonplayer:      value property  QVariant::void* 
dragonplayer: END__: void Dragon::VideoWindow::refreshXineStream() - Took 0.0001s 
dragonplayer: BEGIN: void Dragon::VideoWindow::updateChannels() 
dragonplayer: BEGIN: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::subChannelsChanged(QList<QAction*>) - Took 6.2e-05s 
dragonplayer:      the text is: " "hrag" " and index  264111049 
dragonplayer: BEGIN: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) 
dragonplayer: END__: void Dragon::MainWindow::audioChannelsChanged(QList<QAction*>) - Took 7.8e-05s 
dragonplayer: END__: void Dragon::VideoWindow::updateChannels() - Took 0.00055s 
dragonplayer:    adjusting size to video resolution 
dragonplayer:    Playing state 
dragonplayer:    updated actions 
dragonplayer:    updated menus 
dragonplayer:    set titles  
dragonplayer: END__: void Dragon::VideoWindow::stateChanged(Phonon::State, Phonon::State) - Took 0.0049s 
dragonplayer:  stop cursorTimer 
dragonplayer: BEGIN: virtual Dragon::MainWindow::~MainWindow() 
dragonplayer: BEGIN: virtual Dragon::VideoWindow::~VideoWindow() 
dragonplayer: BEGIN: void Dragon::VideoWindow::eject() 
dragonplayer:        trying to fetch subtitle information 
dragonplayer:        fetched subtitle information 
dragonplayer: END__: void Dragon::VideoWindow::eject() - Took 0.0043s 
dragonplayer: END__: virtual Dragon::VideoWindow::~VideoWindow() - Took 0.71s 
dragonplayer: END__: virtual Dragon::MainWindow::~MainWindow() - Took 0.75s
Comment 1 Torrie Fischer 2010-12-27 18:32:06 UTC
Which phonon backend are you using?
Comment 2 Erik Esterer 2010-12-28 01:14:22 UTC
I'm using the Xine 1.1.x backend from Debian Squeeze (http://packages.debian.org/squeeze/phonon-backend-xine). Using KDE 4.4.5 right now.

Erik

PS: I'm the original bug reporter, just changed my email address.
Comment 3 Harald Sitter 2012-06-01 00:15:38 UTC
does that also happen with an actually supported phonon backend?
Comment 4 Stefan Esterer 2012-06-03 09:10:40 UTC
I'm using kubuntu 12.04 with gstream backend. dragonplayer version is 2.0 and kde version is 4.8.3.

I retested the bug and can't reproduce it with given steps
Comment 5 Erik Esterer 2012-06-08 18:17:10 UTC
I just tested it with the gstreamer and vlc phonon backends and did not encounter the problem. Feel free to close it :)
Comment 6 Harald Sitter 2012-06-08 22:19:06 UTC
Thank you.