		gf_filter_pid_drop_packet(ds->ipid);
	}
	if (discard_all) {
		gf_filter_pid_set_discard(ds->ipid, GF_TRUE);
	}
}

static void dasher_inject_eods(GF_DasherCtx *ctx, GF_DashStream *ds)
{
	//in dynamic mode, send end of dash segment marker to flush segment right away, otherwise we will
	//flush the segment at next segment start which could be after the segment AST => 404
	//
	//if subdur no need to do so as we will close the muxer right after
	//if sigfrag no need to do so since we don't generate media packets
	if (!ctx->subdur && (ctx->dmode>=GF_DASH_DYNAMIC) && !ctx->sigfrag) {
		GF_FilterPacket *eods_pck;
		gf_filter_pid_drop_packet(ds->ipid);
	}
	if (discard_all) {
		gf_filter_pid_set_discard(ds->ipid, GF_TRUE);
	}
}

static void dasher_inject_eods(GF_DasherCtx *ctx, GF_DashStream *ds)
{
	 
	 
	 
	 
	 
	if (!ctx->subdur && (ctx->dmode>=GF_DASH_DYNAMIC) && !ctx->sigfrag) {
		GF_FilterPacket *eods_pck;