summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
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];