Skip to content
This repository
Browse code

[omxplayer] fixed a type in the video player

  • Loading branch information...
commit c4ed280ac3c2e4d4b76f61d4b624ad8bf615ec64 1 parent fae30c3
huceke authored October 14, 2012

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

  1. 10  xbmc/cores/omxplayer/OMXPlayerVideo.cpp
10  xbmc/cores/omxplayer/OMXPlayerVideo.cpp
@@ -47,15 +47,15 @@
47 47
 
48 48
 #include "OMXPlayer.h"
49 49
 
50  
-class COMXMsgAudioCodecChange : public CDVDMsg
  50
+class COMXMsgVideoCodecChange : public CDVDMsg
51 51
 {
52 52
 public:
53  
-  COMXMsgAudioCodecChange(const CDVDStreamInfo &hints, COMXVideo *codec)
  53
+  COMXMsgVideoCodecChange(const CDVDStreamInfo &hints, COMXVideo *codec)
54 54
     : CDVDMsg(GENERAL_STREAMCHANGE)
55 55
     , m_codec(codec)
56 56
     , m_hints(hints)
57 57
   {}
58  
- ~COMXMsgAudioCodecChange()
  58
+ ~COMXMsgVideoCodecChange()
59 59
   {
60 60
     delete m_codec;
61 61
   }
@@ -138,7 +138,7 @@ bool OMXPlayerVideo::OpenStream(CDVDStreamInfo &hints)
138 138
   }
139 139
 
140 140
   if(m_messageQueue.IsInited())
141  
-    m_messageQueue.Put(new COMXMsgAudioCodecChange(hints, NULL), 0);
  141
+    m_messageQueue.Put(new COMXMsgVideoCodecChange(hints, NULL), 0);
142 142
   else
143 143
   {
144 144
     if(!OpenStream(hints, NULL))
@@ -587,7 +587,7 @@ void OMXPlayerVideo::Process()
587 587
     }
588 588
     else if (pMsg->IsType(CDVDMsg::GENERAL_STREAMCHANGE))
589 589
     {
590  
-      COMXMsgAudioCodecChange* msg(static_cast<COMXMsgAudioCodecChange*>(pMsg));
  590
+      COMXMsgVideoCodecChange* msg(static_cast<COMXMsgVideoCodecChange*>(pMsg));
591 591
       OpenStream(msg->m_hints, msg->m_codec);
592 592
       msg->m_codec = NULL;
593 593
     }

0 notes on commit c4ed280

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