Blob Blame History Raw
--- trunk/KDE/kdemultimedia/dragonplayer/src/app/videoWindow.cpp	2009/01/21 21:22:50	914835
+++ trunk/KDE/kdemultimedia/dragonplayer/src/app/videoWindow.cpp	2009/01/21 21:24:33	914836
@@ -610,7 +610,8 @@
     DEBUG_BLOCK
     Phonon::SubtitleDescription desc = Phonon::SubtitleDescription::fromIndex( channel );
     debug() << "using index: " << channel << " returned desc has index: " << desc.index();
-    m_controller->setCurrentSubtitle( desc );
+    if(desc.isValid())  
+      m_controller->setCurrentSubtitle( desc );
 }
 
 void
@@ -627,7 +628,8 @@
     DEBUG_BLOCK
     Phonon::AudioChannelDescription desc = Phonon::AudioChannelDescription::fromIndex( channel );
     debug() << "using index: " << channel << " returned desc has index: " << desc.index();
-    m_controller->setCurrentAudioChannel( desc );
+    if(desc.isValid())
+      m_controller->setCurrentAudioChannel( desc );
 }
 
 void