diff options
-rw-r--r-- | demux/mf.c | 4 | ||||
-rw-r--r-- | demux/mf.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/demux/mf.c b/demux/mf.c index 13021aa53a..d52865a920 100644 --- a/demux/mf.c +++ b/demux/mf.c @@ -49,8 +49,8 @@ char *mf_type = NULL; //"jpg"; static void mf_add(mf_t *mf, const char *fname) { - fname = talloc_strdup(mf, fname); - MP_TARRAY_APPEND(mf, mf->names, mf->nr_of_files, fname); + char *entry = talloc_strdup(mf, fname); + MP_TARRAY_APPEND(mf, mf->names, mf->nr_of_files, entry); } mf_t *open_mf_pattern(void *talloc_ctx, char *filename) diff --git a/demux/mf.h b/demux/mf.h index cf7c2cd40d..5511e3188b 100644 --- a/demux/mf.h +++ b/demux/mf.h @@ -26,7 +26,7 @@ typedef struct mf { struct sh_video *sh; int curr_frame; int nr_of_files; - const char **names; + char **names; // optional struct stream **streams; } mf_t; |