-#if 0
- std::map<int, std::pair<FrameAllocator::Frame, GLsync>> pending_frames;
-#endif
- std::map<int, GLsync> pending_frames;
+
+ struct PendingFrame {
+ RefCountedGLsync fence;
+ std::vector<RefCountedFrame> input_frames;
+ int64_t pts;
+ };
+ std::map<int, PendingFrame> pending_video_frames; // under frame_queue_mutex
+ std::map<int64_t, std::vector<float>> pending_audio_frames; // under frame_queue_mutex