summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/tv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stream/tv.c b/stream/tv.c
index dd76230a2e..0e5fe8c22d 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -762,7 +762,6 @@ static int demux_open_tv(demuxer_t *demuxer, enum demux_check check)
if (tvh->tv_param->noaudio == 0 && funcs->control(tvh->priv, TVI_CONTROL_IS_AUDIO, 0) == TVI_CONTROL_TRUE)
{
int audio_format;
- char buf[128];
/* yeah, audio is present */
@@ -785,8 +784,8 @@ static int demux_open_tv(demuxer_t *demuxer, enum demux_check check)
break;
case AF_FORMAT_MPEG2:
default:
- mp_tmsg(MSGT_TV, MSGL_ERR, "Audio type '%s (%x)' unsupported!\n",
- af_fmt2str(audio_format, buf, 128), audio_format);
+ mp_tmsg(MSGT_TV, MSGL_ERR, "Audio type '%s' unsupported!\n",
+ af_fmt_to_str(audio_format));
goto no_audio;
}