[FFmpeg-devel] [PATCH] avutil/file_open: log temp filename

Gyan ffmpeg at gyani.pro
Wed May 22 10:10:24 EEST 2019


Helps users to identify temp files for a given instance.

In the longer term, we should aim to clean up all temp files.

Gyan
-------------- next part --------------
From df7ff4b80ef424922236ac991b4664533e40b678 Mon Sep 17 00:00:00 2001
From: Gyan Doshi <ffmpeg at gyani.pro>
Date: Wed, 22 May 2019 12:34:19 +0530
Subject: [PATCH] avutil/file_open: log temp filename

Helps users to identify temp files for cleanup.
---
 libavutil/file_open.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/file_open.c b/libavutil/file_open.c
index cc302f2f76..75d1c8befd 100644
--- a/libavutil/file_open.c
+++ b/libavutil/file_open.c
@@ -152,6 +152,8 @@ int avpriv_tempfile(const char *prefix, char **filename, int log_offset, void *l
         av_freep(filename);
         return err;
     }
+    av_log(&file_log_ctx, AV_LOG_INFO, "Opened temporary file %s\n", *filename);
+
     return fd; /* success */
 }
 
-- 
2.21.0


More information about the ffmpeg-devel mailing list