Skip to content
This repository
Browse code

Merge pull request #2930 from popcornmix/remove_flush

[rbp/omxplayer] Remove flush of video codec when audio codec changes
  • Loading branch information...
commit 8320a82717773faaefa1533e67d17d51676cecbc 2 parents 5de7fcf + a21fa19
huceke authored July 02, 2013

Showing 1 changed file with 0 additions and 9 deletions. Show diff stats Hide diff stats

  1. 9  xbmc/cores/omxplayer/OMXPlayerAudio.cpp
9  xbmc/cores/omxplayer/OMXPlayerAudio.cpp
@@ -558,14 +558,11 @@ bool OMXPlayerAudio::OpenDecoder()
558 558
   m_passthrough = false;
559 559
   m_hw_decode   = false;
560 560
 
561  
-  bool bSendParent = false;
562  
-
563 561
   if(m_DecoderOpen)
564 562
   {
565 563
     WaitCompletion();
566 564
     m_omxAudio.Deinitialize();
567 565
     m_DecoderOpen = false;
568  
-    bSendParent = true;
569 566
   }
570 567
 
571 568
   /* setup audi format for audio render */
@@ -599,12 +596,6 @@ bool OMXPlayerAudio::OpenDecoder()
599 596
 
600 597
   m_started = false;
601 598
 
602  
-  // TODO : Send FLUSH to parent, only if we had a valid open codec. 
603  
-  // this is just a workaround to get the omx video decoder happy again
604  
-  // This situation happens, for example where we have in the stream an audio codec change
605  
-  if(bSendParent)
606  
-    m_messageParent.Put(new CDVDMsg(CDVDMsg::GENERAL_FLUSH));
607  
-
608 599
   return bAudioRenderOpen;
609 600
 }
610 601
 

0 notes on commit 8320a82

Please sign in to comment.
Something went wrong with that request. Please try again.