From 20c9dfa61692d9ed741a91177d3fa185d73c02dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 13 Jan 2013 16:13:13 +0100 Subject: Replace strsep() uses This function sucks and apparently is not very portable (at least on mingw, the configure check fails). Also remove the emulation of that function from osdep/strsep*, and remove the configure check. --- audio/filter/af.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'audio') diff --git a/audio/filter/af.c b/audio/filter/af.c index 1f3e446821..8afedbcfe5 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -20,7 +20,6 @@ #include #include #include -#include "osdep/strsep.h" #include "af.h" @@ -129,7 +128,13 @@ static struct af_instance* af_create(struct af_stream* s, const char* name_with_ memset(new,0,sizeof(struct af_instance)); // Check for commandline parameters - strsep(&cmdline, "="); + char *skip = strstr(cmdline, "="); + if (skip) { + *skip = '\0'; // for name + cmdline = skip + 1; + } else { + cmdline = NULL; + } // Find filter from name if(NULL == (new->info=af_find(name))) -- cgit v1.2.3