mp3_decoder_test: Fix invalid taking address of temporary

Signed-off-by: Jaroslaw Pelczar <[email protected]>
Change-Id: I2e41a048784a666de8937e224ee0cd8d17ba24ab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1785
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jaroslaw Pelczar
2019-08-30 14:20:22 +00:00
committed by waddlesplash
parent 42630943fd
commit 297af3088c
@@ -128,8 +128,10 @@ main(int argc, char* argv[])
if (InitializeMp3DecodingCookie(&decodingCookie) != B_OK)
exit(1);
media_format rawAudioFormat = CreateRawMediaFormat();
media_raw_audio_format* audioOutputFormat
= &CreateRawMediaFormat().u.raw_audio;
= &rawAudioFormat.u.raw_audio;
BSoundPlayer player(audioOutputFormat, "wave_player", Mp3Decoding,
NULL, &decodingCookie);