diff options
author | wm4 <wm4@nowhere> | 2013-11-13 19:33:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-13 20:10:17 +0100 |
commit | 894bf603e8ecb370dcf31b25c1598b4e5f454997 (patch) | |
tree | 3816125fefe3e9a683a009bbca3959fa13398345 /demux | |
parent | 933fbf733362eee9db15dd2671c263781abd5635 (diff) | |
download | mpv-894bf603e8ecb370dcf31b25c1598b4e5f454997.tar.bz2 mpv-894bf603e8ecb370dcf31b25c1598b4e5f454997.tar.xz |
mf: silence compilation warning
Diffstat (limited to 'demux')
-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; |