~ubuntu-branches/ubuntu/gutsy/amarok/gutsy-updates

« back to all changes in this revision

Viewing changes to amarok/src/metadata/m4a/itunestrknbox.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-11-03 23:57:33 UTC
  • mfrom: (1.31.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061103235733-a41oyfz4mzienqin
Tags: 2:1.4.4-0ubuntu2
Add debian/kubuntu-media-amarok and
debian amarok_play_audiocd.desktop for good KDE integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  TagLib::uint size;
38
38
  MP4::Fourcc  fourcc;
39
39
 
40
 
  if(mp4file->readSizeAndType( size, fourcc ) == true)  
 
40
  if(mp4file->readSizeAndType( size, fourcc ) == true)
41
41
  {
42
42
    // check for type - must be 'data'
43
43
    if( fourcc != MP4::Fourcc("data") )
44
44
    {
45
 
      std::cerr << "bad atom in itunes tag - skipping it." << std::endl; 
 
45
      std::cerr << "bad atom in itunes tag - skipping it." << std::endl;
46
46
      // jump over data tag
47
47
      mp4file->seek( size-8, TagLib::File::Current );
48
48
      return;
60
60
  mp4file->tagProxy()->registerBox( Mp4TagsProxy::trackno, d->dataBox );
61
61
 
62
62
#if 0
63
 
  // get data pointer - just for debuging...
 
63
  // get data pointer - just for debugging...
64
64
  TagLib::ByteVector trknData = d->dataBox->data();
65
65
  TagLib::String trknumber = TagLib::String::number( static_cast<int>( static_cast<unsigned char>(trknData[0]) << 24 |
66
66
                                                                       static_cast<unsigned char>(trknData[1]) << 16 |