[vlc-commits] input: fix wrong input argument

Thomas Guillem git at videolan.org
Tue Jun 11 07:58:43 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun  7 10:47:56 2019 +0200| [ebbfdb27247d6e3c1e75deae5b9251ce43533258] | committer: Thomas Guillem

input: fix wrong input argument

str_format now accepts a player.
This was leading to a crash when enabling recording from es_out.c

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebbfdb27247d6e3c1e75deae5b9251ce43533258
---

 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;
 



More information about the vlc-commits mailing list