diff options
author | wm4 <wm4@nowhere> | 2014-05-05 23:55:06 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-05 23:56:12 +0200 |
commit | a8b267540ecca0fa7d136078c7b84e2c6cd87e06 (patch) | |
tree | ea5ccfd368c105d0dd99ec21aa7db5da56932b89 /player | |
parent | 7fb5df0d3e67230ec8f962c30ed36ea9b9c71ee7 (diff) | |
download | mpv-a8b267540ecca0fa7d136078c7b84e2c6cd87e06.tar.bz2 mpv-a8b267540ecca0fa7d136078c7b84e2c6cd87e06.tar.xz |
common: change mp_snprintf_append semantics
Make it more suitable for chaining. This means a function formatting a
value to a string using a static buffer can work exactly like
mp_snprintf_append itself.
Also rename it to mp_snprintf_cat, because that's shorter.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c index 413181b530..8077e0369f 100644 --- a/player/command.c +++ b/player/command.c @@ -1561,8 +1561,8 @@ static int probe_deint_filters(struct MPContext *mpctx) if (pref > 0 && pref <= 4) { const char *types[] = {"", "first-field", "bob", "temporal", "temporal-spatial"}; - mp_snprintf_append(filter, sizeof(filter), ":deint-mode=%s", - types[pref]); + mp_snprintf_cat(filter, sizeof(filter), ":deint-mode=%s", + types[pref]); } probe_deint_filter(mpctx, filter); |