From 3dbc9007b080028f0aebbbf8b9ab1233cd70c45b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 20:24:20 +0100 Subject: demux: mp_msg conversions The TV code pretends to be part of stream/, but it's actually demuxer code too. The audio_in code is shared between the TV code and stream_radio.c, so stream_radio.c needs a small hack until stream.c is converted. --- demux/ebml.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'demux/ebml.h') diff --git a/demux/ebml.h b/demux/ebml.h index 8652746e48..9bfea7a8a6 100644 --- a/demux/ebml.h +++ b/demux/ebml.h @@ -26,6 +26,8 @@ #include "stream/stream.h" #include "bstr/bstr.h" +struct mp_log; + /* EBML version supported */ #define EBML_VERSION 1 @@ -57,6 +59,7 @@ struct ebml_elem_desc { }; struct ebml_parse_ctx { + struct mp_log *log; void *talloc_ctx; int bytes_read; bool has_errors; @@ -99,8 +102,9 @@ double ebml_read_float (stream_t *s, uint64_t *length); char *ebml_read_ascii (stream_t *s, uint64_t *length); char *ebml_read_utf8 (stream_t *s, uint64_t *length); int ebml_read_skip (stream_t *s, uint64_t *length); -int ebml_read_skip_or_resync_cluster(stream_t *s, uint64_t *length); -int ebml_resync_cluster(stream_t *s); +int ebml_read_skip_or_resync_cluster(struct mp_log *log, stream_t *s, + uint64_t *length); +int ebml_resync_cluster(struct mp_log *log, stream_t *s); uint32_t ebml_read_master (stream_t *s, uint64_t *length); int ebml_read_element(struct stream *s, struct ebml_parse_ctx *ctx, -- cgit v1.2.3