	if (ctx->tsb>=0) {
		u32 tsb_seg = ds->dash_dur.num ? ((u32) (ctx->tsb * ds->dash_dur.den / ds->dash_dur.num)) : 0;
		tsb_seg++;
		gf_filter_pid_set_property(ds->opid, GF_PROP_PID_TIMESHIFT_SEGS, &PROP_UINT(tsb_seg) );
	}
}

static Bool dasher_template_use_source_url(const char *template)
{
	if (ctx->tsb>=0) {
		u32 tsb_seg = ds->dash_dur.num ? ((u32) (ctx->tsb * ds->dash_dur.den / ds->dash_dur.num)) : 0;
		tsb_seg++;
		gf_filter_pid_set_property(ds->opid, GF_PROP_PID_TIMESHIFT_SEGS, &PROP_UINT(tsb_seg) );
	}
}

static Bool dasher_template_use_source_url(const char *template)
{