void gf_filter_report_meta_option(GF_Filter *filter, const char *arg, Bool was_found)
{
	if (!filter->session || filter->removed || filter->finalized) return;
	if (filter->orig_args) {
		char *opt_arg = strstr(filter->orig_args, "gfopt");
		if (opt_arg) {
			char *arg_pos = strstr(filter->orig_args, arg);
			if (arg_pos && (arg_pos>opt_arg))
				return;
		}
	}
	gf_mx_p(filter->session->filters_mx);
	gf_fs_push_arg(filter->session, arg, was_found ? 2 : 0, 2);
	gf_mx_v(filter->session->filters_mx);
}
void gf_filter_report_meta_option(GF_Filter *filter, const char *arg, Bool was_found)
{
	if (!filter->session || filter->removed || filter->finalized) return;
	if (filter->orig_args) {
		char *opt_arg = strstr(filter->orig_args, "gfopt");
		if (opt_arg) {
			char *arg_pos = strstr(filter->orig_args, arg);
			if (arg_pos && (arg_pos>opt_arg))
				return;
		}
	}
	gf_mx_p(filter->session->filters_mx);
	gf_fs_push_arg(filter->session, arg, was_found ? 2 : 0, 2);
	gf_mx_v(filter->session->filters_mx);
}