aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/encoder/encoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/encoder/encoder.h')
-rw-r--r--include/encoder/encoder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/encoder/encoder.h b/include/encoder/encoder.h
index 22f8e9d..7a808cc 100644
--- a/include/encoder/encoder.h
+++ b/include/encoder/encoder.h
@@ -20,6 +20,8 @@ typedef struct {
AVStream *stream;
int64_t start_pts;
bool has_received_keyframe;
+ char *first_frame_ts_filepath;
+ bool first_frame_ts_written;
} gsr_encoder_recording_destination;
typedef struct {
@@ -43,5 +45,6 @@ void gsr_encoder_receive_packets(gsr_encoder *self, AVCodecContext *codec_contex
/* Returns the id to the recording destination, or -1 on error */
size_t gsr_encoder_add_recording_destination(gsr_encoder *self, AVCodecContext *codec_context, AVFormatContext *format_context, AVStream *stream, int64_t start_pts);
bool gsr_encoder_remove_recording_destination(gsr_encoder *self, size_t id);
+bool gsr_encoder_set_recording_destination_first_frame_ts_filepath(gsr_encoder *self, size_t id, const char *filepath);
#endif /* GSR_ENCODER_H */