Calling mpc update right after Device Mount lead to a missing songs problem

Discuss client development (or even MPD development if you feel so inclined), ask questions about the client libs, MPD feature requests from client developers, etc...
Post Reply
Sogeking
Posts: 7
Joined: February 8th, 2018, 2:09 pm

Calling mpc update right after Device Mount lead to a missing songs problem

Post by Sogeking » October 2nd, 2019, 9:31 am

Hi,

i'm having this problem with a c++ (with qt) program i'v developed.
I call a system command "mount" to mount a device in my raspberry. Right after when mount process is finished i call "mpc update" to update the music database but a lot of songs are missing. If i call mpc update manualy some seconds right after mpc can find all songs correctly.

So the question is: "how can i be sure that the mount process is correctly ended in order to update mpc with all the songs?"

Thanks

max
Forum team
Posts: 938
Joined: January 15th, 2013, 3:43 pm

Re: Calling mpc update right after Device Mount lead to a missing songs problem

Post by max » October 2nd, 2019, 10:18 am


Post Reply