typedef struct
{
	//this is not the template string, this is the resolved segment name for first segment, startNumber=0 and time=0
	char *tpl;
	u32 nb_reused;
} DashTemplateRecord;

static u32 dasher_check_template_reuse(GF_DasherCtx *ctx, const char *tpl)
{
	DashTemplateRecord *tr;
	u32 i, count = gf_list_count(ctx->tpl_records);
	for (i=0; i<count; i++) {
		tr = gf_list_get(ctx->tpl_records, i);
		if (!strcmp(tr->tpl, tpl)) {
			tr->nb_reused++;
			return tr->nb_reused;
typedef struct
{
	 
	char *tpl;
	u32 nb_reused;
} DashTemplateRecord;

static u32 dasher_check_template_reuse(GF_DasherCtx *ctx, const char *tpl)
{
	DashTemplateRecord *tr;
	u32 i, count = gf_list_count(ctx->tpl_records);
	for (i=0; i<count; i++) {
		tr = gf_list_get(ctx->tpl_records, i);
		if (!strcmp(tr->tpl, tpl)) {
			tr->nb_reused++;
			return tr->nb_reused;