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