increment playlist version on update, so clients know to update
git-svn-id: https://svn.musicpd.org/mpd/trunk@240 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
68dc3517a6
commit
997541e1eb
|
@ -317,6 +317,7 @@ int handleSearch(FILE * fp, unsigned int * permission, int argArrayLength,
|
||||||
int handleUpdate(FILE * fp, unsigned int * permission, int argArrayLength,
|
int handleUpdate(FILE * fp, unsigned int * permission, int argArrayLength,
|
||||||
char ** argArray)
|
char ** argArray)
|
||||||
{
|
{
|
||||||
|
incrPlaylistVersion();
|
||||||
return updateMp3Directory(fp);
|
return updateMp3Directory(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,4 +93,6 @@ void playPlaylistIfPlayerStopped();
|
||||||
|
|
||||||
int seekSongInPlaylist(FILE * fp, int song, float time);
|
int seekSongInPlaylist(FILE * fp, int song, float time);
|
||||||
|
|
||||||
|
void incrPlaylistVersion();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue