summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-05 23:55:06 +0200
committerwm4 <wm4@nowhere>2014-05-05 23:56:12 +0200
commita8b267540ecca0fa7d136078c7b84e2c6cd87e06 (patch)
treeea5ccfd368c105d0dd99ec21aa7db5da56932b89 /player/command.c
parent7fb5df0d3e67230ec8f962c30ed36ea9b9c71ee7 (diff)
downloadmpv-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/command.c')
-rw-r--r--player/command.c4
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);