From 913b00f8b876e29af91677ef61b3eb35d6853e6e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 13 Mar 2023 05:59:34 +0100 Subject: GLMediaPlayer: Overhaul and simplify states, allow usage before stream ready showing test-texture. Adding stop(); (API Change) - allow multiple initGL(..) @ uninitialized and initialized - allows usage before stream is ready - using a test-texture @ uninitialized - adding stop() API change - initStream() -> playStream() - play() -> resume() FFMPEG: Added 'ready' check for robustness --- src/jogl/native/libav/ffmpeg_tool.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/jogl/native/libav/ffmpeg_tool.h') diff --git a/src/jogl/native/libav/ffmpeg_tool.h b/src/jogl/native/libav/ffmpeg_tool.h index dd39146e6..02a297f73 100644 --- a/src/jogl/native/libav/ffmpeg_tool.h +++ b/src/jogl/native/libav/ffmpeg_tool.h @@ -202,6 +202,8 @@ typedef struct { char acodec[64]; char vcodec[64]; + int32_t ready; + } FFMPEGToolBasicAV_t ; #endif /* _FFMPEG_TOOL_H */ -- cgit v1.2.3