From 7c3e7920363d811f51094d9f05925680ce5e97aa Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 3 Oct 2014 18:38:07 +0100 Subject: [PATCH] [omxcore] Skip out of flush on error Once an error has occurred, flushing tends to time out and cause delays. --- xbmc/linux/OMXCore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbmc/linux/OMXCore.cpp b/xbmc/linux/OMXCore.cpp index 4ba2e4bc4b1b4..5f91787a150c1 100644 --- a/xbmc/linux/OMXCore.cpp +++ b/xbmc/linux/OMXCore.cpp @@ -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); @@ -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);