stream_vstream: fix vstream_error format string

Code printing a variable already-formatted string passed it to mp_msg
as the format string argument. Use "%s" instead.
This commit is contained in:
Uoti Urpala
2012-04-01 17:31:28 +03:00
parent 81de9a52d0
commit 8cd71527ad
+3 -2
View File
@@ -56,7 +56,7 @@ void vstream_error(const char *format, ...) {
va_start(va, format);
vsnprintf(buf, 1024, format, va);
va_end(va);
mp_msg(MSGT_STREAM, MSGL_ERR, buf);
mp_msg(MSGT_STREAM, MSGL_ERR, "%s", buf);
}
static struct stream_priv_s {
@@ -152,7 +152,8 @@ static int open_s(stream_t *stream, int mode, void* opts, int* file_format) {
stream->start_pos = 0;
stream->end_pos = vstream_streamsize();
mp_msg(MSGT_OPEN, MSGL_DBG2, "Tivo stream size is %d\n", stream->end_pos);
mp_msg(MSGT_OPEN, MSGL_DBG2, "Tivo stream size is %lld\n",
(long long)stream->end_pos);
stream->priv = p;
stream->fill_buffer = fill_buffer;