SDL_mixer: music_xmp.c: Fixed the correctness of meta-tags

From 3d746b7e473bb030b1cd231082c951e7d7f25455 Mon Sep 17 00:00:00 2001
From: Wohlstand <[EMAIL REDACTED]>
Date: Thu, 16 Dec 2021 01:16:26 +0300
Subject: [PATCH] music_xmp.c: Fixed the correctness of meta-tags

To get the proper title of the sing, it should be taken from another place. The field was actually taken is a copyright field.
---
 src/codecs/music_xmp.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/codecs/music_xmp.c b/src/codecs/music_xmp.c
index 2c993419..cf003035 100644
--- a/src/codecs/music_xmp.c
+++ b/src/codecs/music_xmp.c
@@ -219,8 +219,13 @@ void *XMP_CreateFromRW(SDL_RWops *src, int freesrc)
 
     meta_tags_init(&music->tags);
     libxmp.xmp_get_module_info(music->ctx, &music->mi);
+
+    if (music->mi.mod->name[0]) {
+        meta_tags_set(&music->tags, MIX_META_TITLE, music->mi.mod->name);
+    }
+
     if (music->mi.comment) {
-        meta_tags_set(&music->tags, MIX_META_TITLE, music->mi.comment);
+        meta_tags_set(&music->tags, MIX_META_COPYRIGHT, music->mi.comment);
     }
 
     if (freesrc) {