[rbp] fixed omx use SendCommand from component in tunnel class.
authorgimli <ebsi4711@gmail.com>
Sun, 2 Dec 2012 20:29:24 +0000 (21:29 +0100)
committergimli <ebsi4711@gmail.com>
Sun, 2 Dec 2012 20:29:24 +0000 (21:29 +0100)
xbmc/linux/OMXCore.cpp

index e51c248..91f6acd 100644 (file)
@@ -118,7 +118,7 @@ OMX_ERRORTYPE COMXCoreTunel::Flush()
   OMX_ERRORTYPE omx_err = OMX_ErrorNone;
   if(m_src_component->GetComponent())
   {
-    omx_err = OMX_SendCommand(m_src_component->GetComponent(), OMX_CommandFlush, m_src_port, NULL);
+    omx_err = m_src_component->SendCommand(OMX_CommandFlush, m_src_port, NULL);
     if(omx_err != OMX_ErrorNone && omx_err != OMX_ErrorSameState)
     {
       CLog::Log(LOGERROR, "COMXCoreTunel::Flush - Error flush  port %d on component %s omx_err(0x%08x)", 
@@ -128,7 +128,7 @@ OMX_ERRORTYPE COMXCoreTunel::Flush()
 
   if(m_dst_component->GetComponent())
   {
-    omx_err = OMX_SendCommand(m_dst_component->GetComponent(), OMX_CommandFlush, m_dst_port, NULL);
+    omx_err = m_dst_component->SendCommand(OMX_CommandFlush, m_dst_port, NULL);
     if(omx_err != OMX_ErrorNone && omx_err != OMX_ErrorSameState)
     {
       CLog::Log(LOGERROR, "COMXCoreTunel::Flush - Error flush port %d on component %s omx_err(0x%08x)",