diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-10-25 20:09:03 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-10-25 20:09:03 +0000 |
commit | ce10ba4b119faac3eb7c5d1251b1a875d28056c1 (patch) | |
tree | 0770735cd27e4ac6ca137656c341c6ca346e45ab /src/audioOutput.c | |
parent | b6bcc65a454b711b586ca221323f1efba35e6dab (diff) | |
download | mpd-ce10ba4b119faac3eb7c5d1251b1a875d28056c1.tar.gz mpd-ce10ba4b119faac3eb7c5d1251b1a875d28056c1.tar.xz mpd-ce10ba4b119faac3eb7c5d1251b1a875d28056c1.zip |
fix a big time bug in metadataChunk (off by one in an array assignment)
also, now we have metadata in our streams
git-svn-id: https://svn.musicpd.org/mpd/trunk@2337 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audioOutput.c')
-rw-r--r-- | src/audioOutput.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audioOutput.c b/src/audioOutput.c index 24899e814..2963b7497 100644 --- a/src/audioOutput.c +++ b/src/audioOutput.c @@ -32,6 +32,7 @@ AudioOutput * newAudioOutput(char * name) { ret->openDeviceFunc = plugin->openDeviceFunc; ret->playFunc = plugin->playFunc; ret->closeDeviceFunc = plugin->closeDeviceFunc; + ret->sendMetdataFunc = plugin->sendMetdataFunc; ret->open = 0; if(plugin->initDriverFunc(ret) != 0) { @@ -62,3 +63,8 @@ void finishAudioOutput(AudioOutput * audioOutput) { audioOutput->finishDriverFunc(audioOutput); free(audioOutput); } + +void sendMetadataToAudioOutput(AudioOutput * audioOutput, MpdTag * tag) { + if(!audioOutput->open || !audioOutput->sendMetdataFunc) return; + audioOutput->sendMetdataFunc(audioOutput, tag); +} |