From 894bf603e8ecb370dcf31b25c1598b4e5f454997 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 13 Nov 2013 19:33:11 +0100 Subject: mf: silence compilation warning --- demux/mf.c | 4 ++-- demux/mf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'demux') 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; -- cgit v1.2.3