Skip to content

Commit

Permalink
[omxcore] Skip out of flush on error
Browse files Browse the repository at this point in the history
Once an error has occurred, flushing tends to time out and cause delays.
  • Loading branch information
popcornmix committed Feb 15, 2015
1 parent 9219849 commit 7c3e792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/linux/OMXCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ void COMXCoreComponent::FlushAll()

void COMXCoreComponent::FlushInput()
{
if(!m_handle)
if(!m_handle || m_resource_error)
return;

OMX_ERRORTYPE omx_err = OMX_SendCommand(m_handle, OMX_CommandFlush, m_input_port, NULL);
Expand All @@ -435,7 +435,7 @@ void COMXCoreComponent::FlushInput()

void COMXCoreComponent::FlushOutput()
{
if(!m_handle)
if(!m_handle || m_resource_error)
return;

OMX_ERRORTYPE omx_err = OMX_SendCommand(m_handle, OMX_CommandFlush, m_output_port, NULL);
Expand Down

0 comments on commit 7c3e792

Please sign in to comment.