player: remove unneeded call

print_status() is called at a later point anyway (and before sleeping),
so this code has little effect. This code was added in commit a4f7a3df5,
and I can't observe any problems with idle mode anymore.

Now print_status() is called from a single place only, within osd.c.
This commit is contained in:
wm4 2014-08-18 01:21:21 +02:00
parent 0cee4498f1
commit eb2924054f
3 changed files with 1 additions and 6 deletions

View File

@ -434,7 +434,6 @@ void update_window_title(struct MPContext *mpctx, bool force);
void stream_dump(struct MPContext *mpctx);
// osd.c
void print_status(struct MPContext *mpctx);
void set_osd_bar(struct MPContext *mpctx, int type, const char* name,
double min, double max, double neutral, double val);
void set_osd_msg(struct MPContext *mpctx, int level, int time,

View File

@ -146,7 +146,7 @@ static void add_term_osd_bar(struct MPContext *mpctx, char **line, int width)
saddf(line, "%.*s", BSTR_P(parts[4]));
}
void print_status(struct MPContext *mpctx)
static void print_status(struct MPContext *mpctx)
{
struct MPOpts *opts = mpctx->opts;

View File

@ -71,10 +71,6 @@ void pause_player(struct MPContext *mpctx)
if (mpctx->video_out)
vo_set_paused(mpctx->video_out, true);
// Only print status if there's actually a file being played.
if (mpctx->num_sources)
print_status(mpctx);
end:
mp_notify(mpctx, mpctx->opts->pause ? MPV_EVENT_PAUSE : MPV_EVENT_UNPAUSE, 0);
}