[vlc-devel] [PATCH 1/3] input: fix wrong input argument

Thomas Guillem thomas at gllm.fr
Fri Jun 7 10:49:33 CEST 2019


str_format now accepts a player.
This was leading to a crash when enabling recording from es_out.c
---
 src/input/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index 97ee9a6bb6..1736d62cc6 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -3324,7 +3324,7 @@ char *input_CreateFilename(input_thread_t *input, input_item_t *item,
                            const char *ext)
 {
     char *path;
-    char *filename = str_format(input, item, filenamefmt);
+    char *filename = str_format(NULL, item, filenamefmt);
     if (unlikely(filename == NULL))
         return NULL;
 
-- 
2.20.1



More information about the vlc-devel mailing list