Changeset View
Changeset View
Standalone View
Standalone View
shared/tag_helpers/ID3v2TagHelper.cpp
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Line(s) | 192 | if( key == Meta::valHasCover ) | |||
---|---|---|---|---|---|
193 | continue; | 193 | continue; | ||
194 | else if( key == Meta::valUniqueId ) | 194 | else if( key == Meta::valUniqueId ) | ||
195 | { | 195 | { | ||
196 | QPair< UIDType, QString > uidPair = splitUID( value.toString() ); | 196 | QPair< UIDType, QString > uidPair = splitUID( value.toString() ); | ||
197 | if( uidPair.first == UIDInvalid ) | 197 | if( uidPair.first == UIDInvalid ) | ||
198 | continue; | 198 | continue; | ||
199 | 199 | | |||
200 | TagLib::String owner = uidFieldName( uidPair.first ); | 200 | TagLib::String owner = uidFieldName( uidPair.first ); | ||
201 | TagLib::ByteVector uid( uidPair.second.toAscii().data() ); | 201 | TagLib::ByteVector uid( uidPair.second.toLatin1().data() ); | ||
202 | TagLib::ID3v2::FrameList list = m_tag->frameList(); | 202 | TagLib::ID3v2::FrameList list = m_tag->frameList(); | ||
203 | 203 | | |||
204 | for( TagLib::ID3v2::FrameList::ConstIterator it = list.begin(); it != list.end(); ++it ) | 204 | for( TagLib::ID3v2::FrameList::ConstIterator it = list.begin(); it != list.end(); ++it ) | ||
205 | { | 205 | { | ||
206 | if( ( *it )->frameID() == field ) | 206 | if( ( *it )->frameID() == field ) | ||
207 | { | 207 | { | ||
208 | TagLib::ID3v2::UniqueFileIdentifierFrame *frame = | 208 | TagLib::ID3v2::UniqueFileIdentifierFrame *frame = | ||
209 | dynamic_cast< TagLib::ID3v2::UniqueFileIdentifierFrame * >( *it ); | 209 | dynamic_cast< TagLib::ID3v2::UniqueFileIdentifierFrame * >( *it ); | ||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |