Search found 13 matches

by StefWe
February 27th, 2019, 10:09 pm
Forum: Developers' Corner
Topic: After mpd_run_delete no valid status
Replies: 9
Views: 2169

Re: After mpd_run_delete no valid status

I didn't mean to ignore your question. I tried to explain that there is no crash anymore since I changed the playlist query as described above.
It was a false assumption that mpd_run_delete() had something to do with it.
by StefWe
February 27th, 2019, 9:33 pm
Forum: Developers' Corner
Topic: After mpd_run_delete no valid status
Replies: 9
Views: 2169

Re: After mpd_run_delete no valid status

And going back to your initial problem: neither version has a mpd_run_delete() call. I'm confused. Sorry for all the confusion. I added the function mpd_run_delete() last. After that I had the problem that my application crashed. This made me suspect that I was doing something wrong with the functi...
by StefWe
February 26th, 2019, 11:56 am
Forum: Developers' Corner
Topic: After mpd_run_delete no valid status
Replies: 9
Views: 2169

Re: After mpd_run_delete no valid status

I continued to search for my error and found it when I queried the playlist. My old code: QStringList PlayerState::loadPlayList(void) { QStringList playList; struct mpd_status *stat = mpd_run_status(m_connection); unsigned queue_length = mpd_status_get_queue_length(stat); //Prüfen ob es Einträge in ...
by StefWe
February 25th, 2019, 11:32 am
Forum: Developers' Corner
Topic: After mpd_run_delete no valid status
Replies: 9
Views: 2169

Re: After mpd_run_delete no valid status

Sorry for the wrong information.

I talked about the libmpdclient version. You are totaly right, it is version 2.9 And yes i'm using this version, because it is the version shipped by default with xenial. https://packages.ubuntu.com/xenial/libmpdclient-dev
by StefWe
February 25th, 2019, 10:21 am
Forum: Developers' Corner
Topic: After mpd_run_delete no valid status
Replies: 9
Views: 2169

Re: After mpd_run_delete no valid status

Sorry for the bad description. This is all new to me and I'm trying to describe it better. I don't have the server version to hand. The client has the version 2.0.9 My code can be found on https://gitlab.com/StefWe/uMPD As soon as i'm back on my computer i post a minmal version of my crashing code. ...
by StefWe
February 24th, 2019, 10:54 pm
Forum: Developers' Corner
Topic: After mpd_run_delete no valid status
Replies: 9
Views: 2169

After mpd_run_delete no valid status

Hello everybody, i delete an entry from the queue with the command mpd_run_delete(). My mpd client crashes as soon as i check any status (e.g. mpd_status_get_volume, mpd_status_get_state). mpd_status_get_volume returns -1, which I can't explain. Because before mpd_run_delete he read the volume back ...
by StefWe
October 19th, 2018, 9:09 am
Forum: Developers' Corner
Topic: mpd_connection_new() only works onces
Replies: 4
Views: 1858

Re: mpd_connection_new() only works onces

Thank you very much for the detailed explanation.

Now I got what I did wrong.
by StefWe
October 19th, 2018, 8:30 am
Forum: Developers' Corner
Topic: mpd_connection_new() only works onces
Replies: 4
Views: 1858

Re: mpd_connection_new() only works onces

i try to call the function mpd_connection_new() once at the start of my program. Later in the program i used the object i get from mpd_connection_new() and run the mpd_send_play(). This is working. But after that nothing else is working with this object. I need to call the function mpd_connection_ne...
by StefWe
October 18th, 2018, 9:15 pm
Forum: Developers' Corner
Topic: mpd_connection_new() only works onces
Replies: 4
Views: 1858

mpd_connection_new() only works onces

I call the function and can then play or pause successfully. But after that I cannot execute a second command without calling mpd_connection_new() again. Is that normal or i'm doing something wrong? I would have expected the mpd_connection object to remain valid as long as my program is running or I...
by StefWe
October 18th, 2018, 9:04 pm
Forum: Developers' Corner
Topic: Read actual playlist
Replies: 5
Views: 1727

Re: Read actual playlist

Works now! Thank you for this hint!
by StefWe
October 6th, 2018, 11:36 pm
Forum: Developers' Corner
Topic: Read actual playlist
Replies: 5
Views: 1727

Re: Read actual playlist

is it correct that in the entity i get with mpd_recv_entity is only the first item? For example a song?
How can i get the rest of the playlist?

thanks for your help.
by StefWe
September 11th, 2018, 11:00 am
Forum: Developers' Corner
Topic: Read actual playlist
Replies: 5
Views: 1727

Re: Read actual playlist

thank you for your fast answer. i will look on the mpc source code
by StefWe
September 8th, 2018, 8:26 pm
Forum: Developers' Corner
Topic: Read actual playlist
Replies: 5
Views: 1727

Read actual playlist

Hello,

i try to build a mpdclient for ubuntu touch. I made my first steps and play, stop or setVolume works.

Now i want to read the actual playlist items. But i have no idea which function i need to call to get this informations.
I use lib version 2.9

I would appreciate any help.