mp3_decoder_test: Fix invalid taking address of temporary
Signed-off-by: Jaroslaw Pelczar <jarek@jpelczar.com> Change-Id: I2e41a048784a666de8937e224ee0cd8d17ba24ab Reviewed-on: https://review.haiku-os.org/c/haiku/+/1785 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user