Add event_t
This commit is contained in:
+3
-3
@@ -5,7 +5,7 @@
|
||||
#ifndef SUNSHINE_VIDEO_H
|
||||
#define SUNSHINE_VIDEO_H
|
||||
|
||||
#include "queue.h"
|
||||
#include "thread_safe.h"
|
||||
|
||||
struct AVPacket;
|
||||
namespace video {
|
||||
@@ -13,7 +13,7 @@ void free_packet(AVPacket *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>>>;
|
||||
using idr_event_t = std::shared_ptr<safe::event_t<std::pair<int64_t, int64_t>>>;
|
||||
|
||||
struct config_t {
|
||||
int width;
|
||||
@@ -23,7 +23,7 @@ struct config_t {
|
||||
int slicesPerFrame;
|
||||
};
|
||||
|
||||
void capture_display(packet_queue_t packets, event_queue_t idr_events, config_t config);
|
||||
void capture_display(packet_queue_t packets, idr_event_t idr_events, config_t config);
|
||||
}
|
||||
|
||||
#endif //SUNSHINE_VIDEO_H
|
||||
|
||||
Reference in New Issue
Block a user