Fixed bug causing the video playback to freeze

This commit is contained in:
loki
2019-12-08 21:16:02 +01:00
parent 10cd1c0f2b
commit eb57c35ffc
4 changed files with 47 additions and 28 deletions
+4 -2
View File
@@ -11,7 +11,9 @@ struct AVPacket;
namespace video {
void free_packet(AVPacket *packet);
using packet_t = util::safe_ptr<AVPacket, free_packet>;
using packet_t = util::safe_ptr<AVPacket, free_packet>;
using packet_queue_t = std::shared_ptr<safe::queue_t<packet_t>>;
using event_queue_t = std::shared_ptr<safe::queue_t<std::pair<int64_t, int64_t>>>;
struct config_t {
int width;
@@ -21,7 +23,7 @@ struct config_t {
int slicesPerFrame;
};
void capture_display(std::shared_ptr<safe::queue_t<packet_t>> packets, config_t config);
void capture_display(packet_queue_t packets, event_queue_t idr_events, config_t config);
}
#endif //SUNSHINE_VIDEO_H