Projects
Multimedia
gmerlin
gmerlin-1.2.0-cdio.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gmerlin-1.2.0-cdio.patch of Package gmerlin
diff -U 3 -H -d -r -N -- gmerlin.orig/plugins/cdaudio/cdtext.c gmerlin/plugins/cdaudio/cdtext.c --- gmerlin.orig/plugins/cdaudio/cdtext.c 2015-02-23 01:41:32.975585479 +0300 +++ gmerlin/plugins/cdaudio/cdtext.c 2015-02-25 02:21:21.859139216 +0300 @@ -44,7 +44,7 @@ #include "cdaudio.h" #define GET_FIELD(dst, key) \ - field = cdtext_get_const(key, cdtext); + field = cdtext_get_const(cdtext, key, i+1); #define GET_FIELD_DEFAULT(dst,key) \ field = cdtext_get_const(key, cdtext); \ @@ -74,30 +74,27 @@ /* Get information for the whole disc */ - cdtext = cdio_get_cdtext (cdio, 0); + cdtext = cdio_get_cdtext (cdio); if(!cdtext) return 0; - artist = cdtext_get_const(CDTEXT_PERFORMER, cdtext); - author = cdtext_get_const(CDTEXT_COMPOSER, cdtext); /* Composer overwrites songwriter */ + artist = cdtext_get_const(cdtext, CDTEXT_FIELD_PERFORMER, 0); + author = cdtext_get_const(cdtext, CDTEXT_FIELD_COMPOSER, 0); /* Composer overwrites songwriter */ if(!author) - author = cdtext_get_const(CDTEXT_SONGWRITER, cdtext); + author = cdtext_get_const(cdtext, CDTEXT_FIELD_SONGWRITER, 0); - album = cdtext_get_const(CDTEXT_TITLE, cdtext); - genre = cdtext_get_const(CDTEXT_GENRE, cdtext); - comment = cdtext_get_const(CDTEXT_MESSAGE, cdtext); + album = cdtext_get_const(cdtext, CDTEXT_FIELD_TITLE, 0); + genre = cdtext_get_const(cdtext, CDTEXT_FIELD_GENRE, 0); + comment = cdtext_get_const(cdtext, CDTEXT_FIELD_MESSAGE, 0); for(i = 0; i < idx->num_tracks; i++) { if(idx->tracks[i].is_audio) { - cdtext = cdio_get_cdtext (cdio, i+1); - if(!cdtext) - return 0; - GET_FIELD(title, CDTEXT_TITLE); + GET_FIELD(title, CDTEXT_FIELD_TITLE); if(!title) return 0; @@ -105,7 +102,7 @@ gavl_metadata_set(&info[idx->tracks[i].index].metadata, GAVL_META_TITLE, title); - if((field = cdtext_get_const(CDTEXT_PERFORMER, cdtext))) + if((field = cdtext_get_const(cdtext, CDTEXT_FIELD_PERFORMER, i+1))) gavl_metadata_set(&info[idx->tracks[i].index].metadata, GAVL_META_ARTIST, field); else @@ -113,10 +110,10 @@ GAVL_META_ARTIST, artist); - if((field = cdtext_get_const(CDTEXT_COMPOSER, cdtext))) + if((field = cdtext_get_const(cdtext, CDTEXT_FIELD_COMPOSER, i+1))) gavl_metadata_set(&info[idx->tracks[i].index].metadata, GAVL_META_AUTHOR, field); - else if((field = cdtext_get_const(CDTEXT_SONGWRITER, cdtext))) + else if((field = cdtext_get_const(cdtext, CDTEXT_FIELD_SONGWRITER, i+1))) gavl_metadata_set(&info[idx->tracks[i].index].metadata, GAVL_META_AUTHOR, field); else if(author) @@ -124,14 +121,14 @@ GAVL_META_AUTHOR, author); - if((field = cdtext_get_const(CDTEXT_GENRE, cdtext))) + if((field = cdtext_get_const(cdtext, CDTEXT_FIELD_GENRE, i+1))) gavl_metadata_set(&info[idx->tracks[i].index].metadata, GAVL_META_GENRE, field); else gavl_metadata_set(&info[idx->tracks[i].index].metadata, GAVL_META_GENRE, genre); - if((field = cdtext_get_const(CDTEXT_MESSAGE, cdtext))) + if((field = cdtext_get_const(cdtext, CDTEXT_FIELD_MESSAGE, i+1))) gavl_metadata_set(&info[idx->tracks[i].index].metadata, GAVL_META_COMMENT, field); else
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.