mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
make get_id3v1 work
Original commit message from CVS: make get_id3v1 work
This commit is contained in:
parent
44a39fd0e5
commit
abc0da96ef
1 changed files with 5 additions and 2 deletions
|
@ -253,8 +253,11 @@ gst_tag_extract (GstTagList *list, const gchar *tag, const gchar *start, const g
|
|||
return;
|
||||
}
|
||||
}
|
||||
conv = g_strchomp (conv);
|
||||
}
|
||||
if (conv[0] != '\0') {
|
||||
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE, tag, conv, NULL);
|
||||
}
|
||||
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE, tag, conv, NULL);
|
||||
g_free (conv);
|
||||
}
|
||||
/**
|
||||
|
@ -275,7 +278,7 @@ gst_tag_list_new_from_id3v1 (const guint8 *data)
|
|||
|
||||
g_return_val_if_fail (data != NULL, NULL);
|
||||
|
||||
if (data[0] == 'T' && data[1] == 'A' && data[2] == 'G') return NULL;
|
||||
if (data[0] != 'T' || data[1] != 'A' || data[2] != 'G') return NULL;
|
||||
list = gst_tag_list_new ();
|
||||
gst_tag_extract (list, GST_TAG_TITLE, &data[3], 30);
|
||||
gst_tag_extract (list, GST_TAG_ARTIST, &data[33], 30);
|
||||
|
|
Loading…
Reference in a new issue