[mythtv] LastFM support in MythMusic

Willem Ligtenberg wligtenberg at gmail.com
Tue Feb 26 15:04:51 UTC 2008


I have created an extra method:
uint8_t *my_md5(QString string)
{
    uint8_t *md5val;
    uint8_t *c_string = (uint8_t*)string.toUInt();
    av_md5_sum(md5val, c_string, string.length());
    return md5val;
}

And I call this method as follows:
uint8_t *test = my_md5(authtoken.utf8());
cout << *test << endl;

Cheers,

Willem

On Tue, Feb 26, 2008 at 3:46 PM, Paul Harrison <mythtv at dsl.pipex.com> wrote:
> Willem Ligtenberg wrote:
>  > I actually forgot that... sorry.
>  > But I have just tried and then it doesn't whine about not finding an
>  > object, but it seg faults and dumps the core...
>  > Any ideas on that?
>  >
>  > Thanks,
>  >
>  > Willem
>  >
>  >
>
>  Some code showing us how you are calling av_md5_sum() will help.
>
>  Also if you can get a backtrace it will tell you exactly where it's
>  segfaulting which is often enough to see what you have done wrong..
>
>
>
>  Paul H.
>  _______________________________________________
>  mythtv-dev mailing list
>  mythtv-dev at mythtv.org
>  http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


More information about the mythtv-dev mailing list