From d0c94d404daab7ec489ffd8745c6d85a8d377c62 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 22 Apr 2026 00:41:34 +0200 Subject: [PATCH] Test: ignore av_write_trailer error --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ca8b21f..3b443c6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1136,8 +1136,8 @@ static RecordingStartResult start_recording_create_streams(const char *filename, static bool stop_recording_close_streams(AVFormatContext *av_format_context) { bool trailer_written = true; if(av_write_trailer(av_format_context) != 0) { - fprintf(stderr, "gsr error: end: failed to write trailer\n"); - trailer_written = false; + //fprintf(stderr, "gsr error: end: failed to write trailer\n"); + //trailer_written = false; } const bool closed = avio_close(av_format_context->pb) == 0; @@ -4604,7 +4604,7 @@ int main(int argc, char **argv) { // TODO: Replace this with start_recording_create_steams if(!is_replaying && av_write_trailer(av_format_context) != 0) { - fprintf(stderr, "Failed to write trailer\n"); + //fprintf(stderr, "Failed to write trailer\n"); } if(!is_replaying) {