From bec630c34753f7fbbac8712661b596ff5a76b7c1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 12 Nov 2012 23:24:01 +0100 Subject: clang: fix all warnings except deprecations --- core/mplayer.c | 4 +++- core/timeline/tl_edl.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index 1a9fe04f4c..fd260c3a2a 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -1079,7 +1079,7 @@ static void print_status(struct MPContext *mpctx, double a_pos, bool at_frame) mpctx->last_av_difference = MP_NOPTS_VALUE; if (mpctx->last_av_difference > 0.5 && drop_frame_cnt > 50 && !mpctx->drop_message_shown) { - mp_tmsg(MSGT_AVSYNC, MSGL_WARN, mp_gtext(av_desync_help_text)); + mp_tmsg(MSGT_AVSYNC, MSGL_WARN, "%s", mp_gtext(av_desync_help_text)); mpctx->drop_message_shown = true; } } @@ -3771,7 +3771,9 @@ static void play_current_file(struct MPContext *mpctx) mpctx->stream->start_pos += seek_to_byte; // CACHE2: initial prefill: 20% later: 5% (should be set by -cacheopts) +#ifdef CONFIG_DVBIN goto_enable_cache: +#endif if (opts->stream_cache_size > 0) { int res = stream_enable_cache_percent(mpctx->stream, opts->stream_cache_size, diff --git a/core/timeline/tl_edl.c b/core/timeline/tl_edl.c index 1af36a54f8..fb8441d322 100644 --- a/core/timeline/tl_edl.c +++ b/core/timeline/tl_edl.c @@ -322,11 +322,12 @@ void build_edl_timeline(struct MPContext *mpctx) else if (!parts[i].duration) anything_done = true; parts[i].duration = duration; - if (duration && parts[i].src.start < 0) + if (duration && parts[i].src.start < 0) { if (parts[i].src.end < 0) missing_srcstart = i; else parts[i].src.start = parts[i].src.end - duration; + } } if (!anything_done) { if (missing_duration >= 0) { -- cgit v1.2.3