summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-06-14 11:49:40 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-06-14 11:49:40 +0200
commit718c8cb8d796353565033231e1bd5f8f55e29f05 (patch)
treea119126c260bc511768635c47cb4f6e7c97a24e5 /playlist.c
parente005acc43eb3f48235614660ca6c2814eaf26145 (diff)
fixed cue charset detection regression
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/playlist.c b/playlist.c
index 5be2a779..1d192a3f 100644
--- a/playlist.c
+++ b/playlist.c
@@ -835,11 +835,6 @@ pl_cue_skipspaces (const uint8_t *p) {
static void
pl_get_qvalue_from_cue (const uint8_t *p, int sz, char *out, const char *charset) {
- if (!charset) {
- strcpy (out, "<UNRECOGNIZED CHARSET>");
- return;
- }
-
char *str = out;
if (*p == 0) {
*out = 0;
@@ -873,6 +868,10 @@ pl_get_qvalue_from_cue (const uint8_t *p, int sz, char *out, const char *charset
*out = 0;
}
+ if (!charset) {
+ return;
+ }
+
// recode
int l = strlen (str);
char recbuf[l*10];