summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-01 19:25:52 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-01 19:25:52 +0000
commit3fc8335a862787c1457f49a302b7d73e62c0a700 (patch)
tree40fb11f6d764d6a3d9505a4f086f4ec7f4fb31ca /stream
parent2b91c7f04471a71c6dd6ee4df52cbc8bdc2acfc6 (diff)
downloadmpv-3fc8335a862787c1457f49a302b7d73e62c0a700.tar.bz2
mpv-3fc8335a862787c1457f49a302b7d73e62c0a700.tar.xz
Avoid a global variable and a strcpy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30804 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_cue.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/stream/stream_cue.c b/stream/stream_cue.c
index 9d94dd8dda..6ff0667010 100644
--- a/stream/stream_cue.c
+++ b/stream/stream_cue.c
@@ -75,8 +75,6 @@ static const struct m_struct_st stream_opts = {
static FILE* fd_cue;
static int fd_bin = 0;
-static char bin_filename[256];
-
static char cue_filename[256];
static char bincue_path[256];
@@ -180,6 +178,7 @@ static int cue_getTrackinfo(char *Line, tTrack *track)
static int cue_find_bin (char *firstline) {
const char *cur_name;
int i,j;
+ char bin_filename[256];
char s[256];
char t[256];
@@ -267,11 +266,8 @@ static int cue_find_bin (char *firstline) {
return -1;
}
- if (cur_name != bin_filename)
- strcpy(bin_filename, cur_name);
-
mp_msg(MSGT_OPEN,MSGL_INFO,
- MSGTR_MPDEMUX_CUEREAD_UsingBinFile, bin_filename);
+ MSGTR_MPDEMUX_CUEREAD_UsingBinFile, cur_name);
return 0;
}