From b54bde6f2b9f826cd7189182d733aada66c95dd8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Dec 2009 14:27:32 +0100 Subject: filter_plugin: allow open() to force an input format Make the audio_format argument non-const. Allow the open() method to modify it, to indicate that it wants a different input audio format than the one specified. Check that condition in chain_filter_open(), and fail. --- src/filter/route_filter_plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/filter/route_filter_plugin.c') diff --git a/src/filter/route_filter_plugin.c b/src/filter/route_filter_plugin.c index 7fef2bc12..d9ca149c8 100644 --- a/src/filter/route_filter_plugin.c +++ b/src/filter/route_filter_plugin.c @@ -248,8 +248,7 @@ route_filter_finish(struct filter *_filter) } static const struct audio_format * -route_filter_open(struct filter *_filter, - const struct audio_format *audio_format, +route_filter_open(struct filter *_filter, struct audio_format *audio_format, G_GNUC_UNUSED GError **error_r) { struct route_filter *filter = (struct route_filter *)_filter; -- cgit v1.2.3