X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encoder.h;h=25b19725dee6841faf83c453af49fab38a279ca3;hb=ab03e5e6f24b1651b4ca7df95e20aa5786939209;hp=52aaf77dd48d4ac4007c121189ce3d295dd14640;hpb=64f9314bfe9b21fed7304a4d08a35d80e8c73144;p=nageru diff --git a/quicksync_encoder.h b/quicksync_encoder.h index 52aaf77..25b1972 100644 --- a/quicksync_encoder.h +++ b/quicksync_encoder.h @@ -62,7 +62,8 @@ public: void add_audio(int64_t pts, std::vector audio); bool begin_frame(GLuint *y_tex, GLuint *cbcr_tex); RefCountedGLsync end_frame(int64_t pts, int64_t duration, const std::vector &input_frames); - void shutdown(); // Blocking. + void shutdown(); // Blocking. Does not require an OpenGL context. + void release_gl_resources(); // Requires an OpenGL context. Must be run after shutdown. private: std::unique_ptr impl;