From 8c7ed70c32629a7f8023d6ccd4043c9acb94dd46 Mon Sep 17 00:00:00 2001 From: Rainer Hochecker Date: Mon, 28 Mar 2016 10:04:33 +0200 Subject: VDPAU: fix flushing mixer --- xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp index 4e995b6f0a..87f4e6424b 100644 --- a/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp +++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp @@ -1458,7 +1458,20 @@ void CMixer::StateMachine(int signal, Protocol *port, Message *msg) break; case M_TOP_CONFIGURED: - if (port == &m_dataPort) + if (port == &m_controlPort) + { + switch (signal) + { + case CMixerControlProtocol::FLUSH: + Flush(); + msg->Reply(CMixerControlProtocol::ACC); + m_state = M_TOP_CONFIGURED_WAIT1; + return; + default: + break; + } + } + else if (port == &m_dataPort) { switch (signal) { -- cgit v1.2.3