diff options
author | Markus Pfau <pfau@peak3d.de> | 2019-02-16 22:02:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-16 22:02:05 +0100 |
commit | d3785c85c3d4cbf8a90aecb6ff071c67af16e05c (patch) | |
tree | 358133f15d69966f4ff0a4fa2a662665152405c4 | |
parent | 69af7348e3018316f5d64b9b2ae8dabd6e52ce6e (diff) | |
parent | 837bf1e81c1af00c65c89ba01edd803943120286 (diff) |
Merge pull request #15534 from peak3d/mtk
[Android] Queue AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM buffer only >= API 26
-rw-r--r-- | xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp index d66e66b31c..b3ce4f1ddb 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp @@ -1054,7 +1054,7 @@ void CDVDVideoCodecAndroidMediaCodec::FlushInternal() { // invalidate any existing inflight buffers and create // new ones to match the number of output buffers - if (m_indexInputBuffer >=0) + if (m_indexInputBuffer >=0 && CJNIBase::GetSDKVersion() >= 26) AMediaCodec_queueInputBuffer(m_codec->codec(), m_indexInputBuffer, 0, 0, 0, AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM); m_OutputDuration = 0; |