summaryrefslogtreecommitdiffstats
path: root/filters/filter_internal.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-08-27 11:41:42 +0200
committerwm4 <wm4@nowhere>2020-08-27 11:55:20 +0200
commit5f89b230c77af7823f48443bdd28899f616ded45 (patch)
treecbb7f3077c8eab5b1c0b3dc225040a8b8f923a52 /filters/filter_internal.h
parenta7413aff22521ea471575613b936e437230d3f28 (diff)
downloadmpv-5f89b230c77af7823f48443bdd28899f616ded45.tar.bz2
mpv-5f89b230c77af7823f48443bdd28899f616ded45.tar.xz
filter: add a helper
Not used yet; probably will, just dumping this to get it out of my sight.
Diffstat (limited to 'filters/filter_internal.h')
-rw-r--r--filters/filter_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/filters/filter_internal.h b/filters/filter_internal.h
index fe108e7470..02acef6254 100644
--- a/filters/filter_internal.h
+++ b/filters/filter_internal.h
@@ -98,6 +98,9 @@ struct mp_filter_info {
bool (*command)(struct mp_filter *f, struct mp_filter_command *cmd);
};
+// Return the mp_filter_info this filter was crated with.
+const struct mp_filter_info *mp_filter_get_info(struct mp_filter *f);
+
// Create a filter instance. Returns NULL on failure.
// Destroy/free with talloc_free().
// This is for filter implementers only. Filters are created with their own