diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-04-25 23:04:05 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-04-25 23:05:01 +0300 |
commit | 823b989f0f6e981b1ee61543573c391ca475dd18 (patch) | |
tree | be4638b1be7003808e66f7d06acb3ca832d20f1a /mplayer.c | |
parent | 082287f3a3ae77c90266f5acae037e052080462c (diff) | |
download | mpv-823b989f0f6e981b1ee61543573c391ca475dd18.tar.bz2 mpv-823b989f0f6e981b1ee61543573c391ca475dd18.tar.xz |
mplayer.c: silence some compiler warnings
No semantic changes.
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1666,12 +1666,13 @@ static void update_osd_msg(struct MPContext *mpctx) char percentage_text[10]; int pts = demuxer_get_current_time(mpctx->demuxer); - if (mpctx->osd_show_percentage_until) + if (mpctx->osd_show_percentage_until) { if (mpctx->timeline) percentage = mpctx->sh_video->pts * 100 / mpctx->timeline[mpctx->num_timeline_parts].start; else percentage = demuxer_get_percent_pos(mpctx->demuxer); + } if (percentage >= 0) snprintf(percentage_text, 9, " (%d%%)", percentage); @@ -2956,7 +2957,7 @@ static void build_ordered_chapter_timeline(struct MPContext *mpctx) uint64_t missing_time = 0; int part_count = 0; int num_chapters = 0; - uint64_t prev_part_offset; + uint64_t prev_part_offset = 0; for (int i = 0; i < m->num_ordered_chapters; i++) { struct matroska_chapter *c = m->ordered_chapters + i; @@ -4324,13 +4325,14 @@ if(auto_quality>0){ update_osd_msg(mpctx); int hack = vo_osd_changed(0); vo_osd_changed(hack); - if (hack) + if (hack) { if (redraw_osd(mpctx->sh_video, mpctx->osd) < 0) { add_step_frame(mpctx); break; } else vo_osd_changed(0); + } } pause_loop(mpctx); } |