This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok-1.4.4 and CVS with libgpod CVS (FIXED)

Tags: None
(comma "," separated)
metalcoat
Registered Member
Posts
47
Karma
0
Today the artwork freezing problem was addressed in the CVS version of libgpod, so I had updated to get this to work in amarok, although after trying to compile amarok from scratch I get

Code: Select all
mediadevice.lo ipodmediadevice.cpp; \
        then mv -f ".deps/ipodmediadevice.Tpo" ".deps/ipodmediadevice.Plo"; else rm -f ".deps/ipodmediadevice.Tpo"; exit 1; fi
ipodmediadevice.cpp: In member function 'virtual MediaItem* IpodMediaDevice::updateTrackInDB(IpodMediaItem*, const QString&, const MetaBundle&, const MetaBundle&, const PodcastInfo*)':
ipodmediadevice.cpp:305: error: 'struct _Itdb_Track' has no member named 'unk208'
ipodmediadevice.cpp:326: error: 'struct _Itdb_Track' has no member named 'unk208'
ipodmediadevice.cpp:334: error: 'struct _Itdb_Track' has no member named 'unk208'
ipodmediadevice.cpp:344: error: 'struct _Itdb_Track' has no member named 'unk208'
ipodmediadevice.cpp:387: error: 'struct _Itdb_Track' has no member named 'unk208'
ipodmediadevice.cpp:387: error: 'struct _Itdb_Track' has no member named 'unk208'
make[5]: *** [ipodmediadevice.lo] Error 1
make[5]: Leaving directory `/home/chris/multimedia/amarok/src/mediadevice/ipod'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/chris/multimedia/amarok/src/mediadevice'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/chris/multimedia/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/chris/multimedia/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chris/multimedia'
make: *** [all] Error 2


After which I downloaded the svn and proceeded and came up with the exact problem.

Here is the line 305-326 from ipodmediadevice.cpp and the first line that mentions unk208

Code: Select all
track->unk208 = 0x01; // for audio
    if(type=="wav")
    {
        track->filetype = g_strdup( "wav" );
    }
    else if(type=="mp3" || type=="mpeg")
    {
        track->filetype = g_strdup( "mpeg" );
    }
    else if(type=="aac" || type=="m4a" || (!m_supportsVideo && type=="mp4"))
    {
        track->filetype = g_strdup( "mp4" );
    }
    else if(type=="m4b")
    {
        track->filetype = g_strdup( "mp4" );
#ifdef HAVE_ITDB_SKIP_SHUFFLE_FLAG
        track->remember_playback_position |= 0x01; // remember current position in track
#else
        track->flag3 |= 0x01; // remember current position in track
#endif
        track->unk208 = 0x08; // for audiobooks


Then one reference to line 387

Code: Select all
track->unk208 = track->unk208==0x02 ? 0x06 : 0x04;


Any suggestions or help are welcomed.

Last edited by metalcoat on Tue Nov 14, 2006 6:34 pm, edited 1 time in total.
metalcoat
Registered Member
Posts
47
Karma
0
Alright turns out in the most recent CVS in libgpod they changed unk206 to mediatype and I apparently didn't read the changelog right.  So replacing all instances of unk208 with mediatype then recompile worked magic and now artwork is perfect after reuploading all music since there is no fix yet.  A dev might want this fixed in svn.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]