summaryrefslogtreecommitdiffstats
path: root/filters/f_swscale.c
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-04-10 01:47:05 -0400
committerKacper Michajłow <kasper93@gmail.com>2024-04-10 19:00:22 +0200
commit9bb7d96bf969f1bba3211c4eb802f8a6c391c392 (patch)
treef73037a64b5dca8163b16e0f5fe97425eefd84a4 /filters/f_swscale.c
parent06f88dfb3a86e5d037d885319fbf93fc46d95371 (diff)
downloadmpv-9bb7d96bf969f1bba3211c4eb802f8a6c391c392.tar.bz2
mpv-9bb7d96bf969f1bba3211c4eb802f8a6c391c392.tar.xz
various: make filter internal function names more descriptive
Lots of filters have generic internal function names like "process". On a stack trace, all of the different filters use this name, which causes confusion of the actual filter being processed. This renames these internal function names to carry the filter names. This matches what had already been done for some filters.
Diffstat (limited to 'filters/f_swscale.c')
-rw-r--r--filters/f_swscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filters/f_swscale.c b/filters/f_swscale.c
index 4aca6095c5..89fc2bb3fc 100644
--- a/filters/f_swscale.c
+++ b/filters/f_swscale.c
@@ -68,7 +68,7 @@ bool mp_sws_supports_input(int imgfmt)
return sws_isSupportedInput(imgfmt2pixfmt(imgfmt));
}
-static void process(struct mp_filter *f)
+static void sws_process(struct mp_filter *f)
{
struct mp_sws_filter *s = f->priv;
@@ -130,7 +130,7 @@ error:
static const struct mp_filter_info sws_filter = {
.name = "swscale",
.priv_size = sizeof(struct mp_sws_filter),
- .process = process,
+ .process = sws_process,
};
struct mp_sws_filter *mp_sws_filter_create(struct mp_filter *parent)