]> git.tuebingen.mpg.de Git - paraslash.git/commit
aft: Update status items on afs events.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 22 Dec 2014 18:05:38 +0000 (18:05 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 Mar 2015 21:40:58 +0000 (21:40 +0000)
commitbb92402464a61c03616ff23397e753a9dca98d6d
tree98576a46a07d4ceaea63b400739a04ab88cbd967
parente0671caf7202075332964347dacd92ab6e18dcd4
aft: Update status items on afs events.

When a paraslash command changes the afs or afh info structures of the
current audio file, for example by re-adding the file with modified
meta tags, the stat output still reports the old values. With this
patch applied, the status items are updated immediately.

This is achieved by letting aft.c honor the AFSI_CHANGE and AFHI_CHANGE
events. If the audio file which triggered the event is the one
currently being streamed, the event handler recreates the status items.
We need two new global static variables in aft.c to track the row of
the audio file table which corresponds to the current file.
aft.c