[tracker-miners] tracker-extract-mp3: Some code style/indenting fixes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] tracker-extract-mp3: Some code style/indenting fixes
- Date: Mon, 26 Aug 2019 08:59:03 +0000 (UTC)
commit 695896b5f7f3df35edc67f5a95c7a4c9ece1137f
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 26 10:39:08 2019 +0200
tracker-extract-mp3: Some code style/indenting fixes
src/tracker-extract/tracker-extract-mp3.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index 43878869f..4e1270376 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1381,11 +1381,11 @@ extract_txxx_tags (id3v2tag *tag, const gchar *data, guint pos, size_t csize, id
if (version == 2.3f) {
description = id3v2_text_to_utf8 (data[pos], &data[pos + 1], csize - 1, info);
value = id3v2_text_to_utf8 (text_encode, text, csize - offset, info);
- }
- else if (version == 2.4f) {
+ } else if (version == 2.4f) {
description = id3v24_text_to_utf8 (data[pos], &data[pos + 1], csize - 1, info);
value = id3v24_text_to_utf8 (text_encode, text, csize - offset, info);
}
+
if (!tracker_is_empty_string (description)) {
g_strstrip (description);
txxxtype = id3_get_txxx_type (description);
@@ -1402,6 +1402,7 @@ extract_txxx_tags (id3v2tag *tag, const gchar *data, guint pos, size_t csize, id
g_free (value);
return;
}
+
switch (txxxtype) {
case ACOUSTID_FINGERPRINT:
tag->acoustid_fingerprint = value;
@@ -2731,19 +2732,16 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
if (md.mb_release_id) {
mb_release_id =
tracker_extract_new_external_reference("https://musicbrainz.org/doc/Release",
- md.mb_release_id);
+ md.mb_release_id);
tracker_resource_set_relation (md.album, "tracker:hasExternalReference",
mb_release_id);
}
if (md.mb_release_group_id) {
mb_release_group_id =
tracker_extract_new_external_reference("https://musicbrainz.org/doc/Release_Group",
- md.mb_release_group_id);
+ md.mb_release_group_id);
- if (mb_release_id) {
- tracker_resource_add_relation (md.album, "tracker:hasExternalReference",
mb_release_group_id);
- } else
- tracker_resource_set_relation (md.album, "tracker:hasExternalReference",
mb_release_group_id);
+ tracker_resource_set_relation (md.album, "tracker:hasExternalReference",
mb_release_group_id);
}
if (md.track_count > 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]