aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/native/libav/ffmpeg_impl_template.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-12-04 13:35:22 +0100
committerSven Gothel <[email protected]>2023-12-04 13:35:22 +0100
commit2e3092d1ed533b819e2b6442e0d9563818599564 (patch)
tree699e137cd14806ca73bf33467a3945e9f0650ed9 /src/jogl/native/libav/ffmpeg_impl_template.c
parent44ec1a4669a099adadb15e5f7ae6ce75c6afa985 (diff)
FFMpeg: Just be nice and flush GL stream, no finish sync required
Diffstat (limited to 'src/jogl/native/libav/ffmpeg_impl_template.c')
-rw-r--r--src/jogl/native/libav/ffmpeg_impl_template.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jogl/native/libav/ffmpeg_impl_template.c b/src/jogl/native/libav/ffmpeg_impl_template.c
index 1aef8c163..7b46bfd7c 100644
--- a/src/jogl/native/libav/ffmpeg_impl_template.c
+++ b/src/jogl/native/libav/ffmpeg_impl_template.c
@@ -1563,8 +1563,14 @@ JNIEXPORT jint JNICALL FF_FUNC(readNextPacket0)
DBG_TEXSUBIMG2D_b(pAV);
} // FIXME: Add more planar formats !
- pAV->procAddrGLFinish();
- //pAV->procAddrGLFlush();
+ // We might want a sync here, ensuring the texture data is uploaded?
+ //
+ // No, glTexSubImage2D() shall block until new pixel data are taken,
+ // i.e. shall be a a synchronous client command
+ //
+ // pAV->procAddrGLFinish(); // No sync required and too expensive for multiple player
+ pAV->procAddrGLFlush(); // No sync required, but be nice
+
sp_av_frame_unref(pAV->pVFrame);
} // draining frames loop
} // stream_id selection