u32 gf_filter_get_num_events_queued(GF_Filter *filter)
{
	u32 res;
	GF_FilterSession *fsess;
	if (!filter) return 0;
	fsess = filter->session;

	gf_mx_p(fsess->filters_mx);
	res = gf_filter_get_num_events_queued_internal(filter);
	gf_mx_v(fsess->filters_mx);

	return res;
}
u32 gf_filter_get_num_events_queued(GF_Filter *filter)
{
	u32 res;
	GF_FilterSession *fsess;
	if (!filter) return 0;
	fsess = filter->session;

	gf_mx_p(fsess->filters_mx);
	res = gf_filter_get_num_events_queued_internal(filter);
	gf_mx_v(fsess->filters_mx);

	return res;
}