diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-11-07 17:27:16 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-11-07 17:27:16 +0400 |
commit | 5d444eac2fb31fccefa41fcf35ee3613537bc3c4 (patch) | |
tree | aecf321cb5a78f6a58a86559660b0eda432c9440 /demuxer | |
parent | 0ae7f12805eb2b30d63445491ebf393d9c42a604 (diff) |
Wait for the seek to finish before returning to the caller.
Diffstat (limited to 'demuxer')
-rw-r--r-- | demuxer/LAVSplitter/LAVSplitter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demuxer/LAVSplitter/LAVSplitter.cpp b/demuxer/LAVSplitter/LAVSplitter.cpp index 27f00cd6..9dd67198 100644 --- a/demuxer/LAVSplitter/LAVSplitter.cpp +++ b/demuxer/LAVSplitter/LAVSplitter.cpp @@ -1061,6 +1061,9 @@ STDMETHODIMP CLAVSplitter::SetPositionsInternal(void *caller, LONGLONG* pCurrent DeliverBeginFlush(); CallWorker(CMD_SEEK); DeliverEndFlush(); + + // Wait for the seek to finish + m_ePlaybackInit.Wait(); } DbgLog((LOG_TRACE, 20, " -> Seek finished", m_rtNewStart)); |