]> git.sesse.net Git - nageru/blobdiff - quicksync_encoder.h
When doing a cut, do the shutdown in a separate thread.
[nageru] / quicksync_encoder.h
index 52aaf77dd48d4ac4007c121189ce3d295dd14640..25b19725dee6841faf83c453af49fab38a279ca3 100644 (file)
@@ -62,7 +62,8 @@ public:
        void add_audio(int64_t pts, std::vector<float> audio);
        bool begin_frame(GLuint *y_tex, GLuint *cbcr_tex);
        RefCountedGLsync end_frame(int64_t pts, int64_t duration, const std::vector<RefCountedFrame> &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<QuickSyncEncoderImpl> impl;