audio: avoid duplicated error messages on init failure
commit24d0d48c4a658ed863b2e0246d1362ca3c4b3d19
authorUoti Urpala <uau@mplayer2.org>
Tue, 3 May 2011 14:25:01 +0000 (3 17:25 +0300)
committerUoti Urpala <uau@mplayer2.org>
Tue, 3 May 2011 14:25:01 +0000 (3 17:25 +0300)
tree37ab317eafc54df9b4108985f2b7ef5a9be343a0
parent0321d683b4b970fd1025f8613c6a0ce9fcc98716
audio: avoid duplicated error messages on init failure

dec_audio.c init_audio_codec() would in one case print
"ADecoder init failed :(\n" and return failure. Its only caller
init_best_audio_codec() printed exactly the same message if the
returned result was failure. Change the latter message to say
"Could not open audio decoder %s.\n" instead. Some of the
per-open-attempt messages are kind of value about their context; this
new message should make it more clear where the attempt to open one
specific codec ends.
libmpcodecs/dec_audio.c