aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/replay_buffer/replay_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/replay_buffer/replay_buffer.c')
-rw-r--r--src/replay_buffer/replay_buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/replay_buffer/replay_buffer.c b/src/replay_buffer/replay_buffer.c
index 458b359..4958bba 100644
--- a/src/replay_buffer/replay_buffer.c
+++ b/src/replay_buffer/replay_buffer.c
@@ -22,6 +22,11 @@ void gsr_replay_buffer_destroy(gsr_replay_buffer *self) {
free(self);
}
+void gsr_replay_buffer_destroy_at_exit(gsr_replay_buffer *self) {
+ self->destroy_at_exit(self);
+ /* |self| is intentionally not free'd, the operating system does that when the process exits */
+}
+
bool gsr_replay_buffer_append(gsr_replay_buffer *self, const AVPacket *av_packet, double timestamp) {
return self->append(self, av_packet, timestamp);
}