From 74d3c4e40e0f6d31985ebff41bff589636b78ea3 Mon Sep 17 00:00:00 2001 From: Consti10 Date: Mon, 20 Apr 2020 17:32:19 +0200 Subject: [PATCH] react to changes --- VideoCore/src/main/cpp/Decoder/LowLagDecoder.cpp | 3 +-- .../video/core/ISurfaceTextureAvailable.java | 16 ---------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 VideoCore/src/main/java/constantin/video/core/ISurfaceTextureAvailable.java diff --git a/VideoCore/src/main/cpp/Decoder/LowLagDecoder.cpp b/VideoCore/src/main/cpp/Decoder/LowLagDecoder.cpp index b381561f..ff5deae7 100644 --- a/VideoCore/src/main/cpp/Decoder/LowLagDecoder.cpp +++ b/VideoCore/src/main/cpp/Decoder/LowLagDecoder.cpp @@ -98,7 +98,7 @@ void LowLagDecoder::configureStartDecoder(const NALU& sps,const NALU& pps){ return; } AMediaCodec_start(decoder.codec); - mCheckOutputThread=new std::thread([this] { this->checkOutputLoop(); }); + mCheckOutputThread=new std::thread(&LowLagDecoder::checkOutputLoop,this); decoder.configured=true; } @@ -141,7 +141,6 @@ void LowLagDecoder::checkOutputLoop() { decoderProducedUnknown=true; continue; } - //Recalculate the //every 2 seconds recalculate the current fps and bitrate const auto now=steady_clock::now(); const auto delta=now-decodingInfo.lastCalculation; diff --git a/VideoCore/src/main/java/constantin/video/core/ISurfaceTextureAvailable.java b/VideoCore/src/main/java/constantin/video/core/ISurfaceTextureAvailable.java deleted file mode 100644 index befd0b92..00000000 --- a/VideoCore/src/main/java/constantin/video/core/ISurfaceTextureAvailable.java +++ /dev/null @@ -1,16 +0,0 @@ -package constantin.video.core; - -import android.graphics.SurfaceTexture; - -/** - * With api < 26 we cannot create a SurfaceTexture object until the OpenGL thread creates - * Its underlying texture image - * This callback is called by the OpenGL thread with a valid SurfaceTexture - */ -public interface ISurfaceTextureAvailable{ - /** - * Called by the OpenGL thread - *@param surfaceTexture: A valid surface texture created by the OpenGL thread - */ - public void onSurfaceTextureAvailable(final SurfaceTexture surfaceTexture); -} \ No newline at end of file