[brasero] Use the correct type for ISRC when retrieving tags with GStreamer
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Use the correct type for ISRC when retrieving tags with GStreamer
- Date: Mon, 31 Aug 2009 13:33:02 +0000 (UTC)
commit 42a61984f8aaad108f201a6ce71f82e6fab97d34
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Mon Aug 31 14:10:36 2009 +0200
Use the correct type for ISRC when retrieving tags with GStreamer
libbrasero-utils/brasero-metadata.c | 6 +++++-
plugins/transcode/burn-transcode.c | 6 +++---
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/libbrasero-utils/brasero-metadata.c b/libbrasero-utils/brasero-metadata.c
index 672026c..8a22b54 100644
--- a/libbrasero-utils/brasero-metadata.c
+++ b/libbrasero-utils/brasero-metadata.c
@@ -587,7 +587,11 @@ foreach_tag (const GstTagList *list,
gst_tag_list_get_string (list, tag, &(self->composer));
}
*/ else if (!strcmp (tag, GST_TAG_ISRC)) {
- gst_tag_list_get_int (list, tag, &(priv->info->isrc));
+ gchar *isrc = NULL;
+ gst_tag_list_get_string (list, tag, &isrc);
+
+ if (isrc)
+ priv->info->isrc = (int) g_ascii_strtoull (isrc, NULL, 10);
}
else if (!strcmp (tag, GST_TAG_MUSICBRAINZ_TRACKID)) {
gst_tag_list_get_string (list, tag, &(priv->info->musicbrainz_id));
diff --git a/plugins/transcode/burn-transcode.c b/plugins/transcode/burn-transcode.c
index 1d7f4d6..e1c7039 100644
--- a/plugins/transcode/burn-transcode.c
+++ b/plugins/transcode/burn-transcode.c
@@ -1265,12 +1265,12 @@ foreach_tag (const GstTagList *list,
}
else if (!strcmp (tag, GST_TAG_ISRC)) {
if (!brasero_track_tag_lookup_int (track, BRASERO_TRACK_STREAM_ISRC_TAG)) {
- gint isrc = 0;
+ gchar *isrc = NULL;
- gst_tag_list_get_int (list, tag, &isrc);
+ gst_tag_list_get_string (list, tag, &isrc);
brasero_track_tag_add_int (track,
BRASERO_TRACK_STREAM_ARTIST_TAG,
- isrc);
+ (int) g_ascii_strtoull (isrc, NULL, 10));
}
}
else if (!strcmp (tag, GST_TAG_PERFORMER)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]