From a8b267540ecca0fa7d136078c7b84e2c6cd87e06 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 5 May 2014 23:55:06 +0200 Subject: 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. --- player/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player') 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); -- cgit v1.2.3