static void dasher_check_outpath(GF_DasherCtx *ctx)
{
	if (!ctx->out_path) {
		ctx->out_path = gf_filter_pid_get_destination(ctx->opid);
		if (!ctx->out_path) return;

		if (ctx->mname) {
			char *sep = strstr(ctx->out_path, "://");
			if (sep) {
				char *opath = gf_url_concatenate(ctx->out_path, ctx->mname);
				if (opath) {
					gf_free(ctx->out_path);
					ctx->out_path = opath;
				}
			}
		}
		//check if we have a route/atsc output, in which we will case assign hls ref prop
		if (!strncmp(ctx->out_path, "route://", 8) || !strncmp(ctx->out_path, "atsc://", 7))
			ctx->is_route = GF_TRUE;
	}
	//for routeout
	if (ctx->opid)
		gf_filter_pid_set_property(ctx->opid, GF_PROP_PID_URL, &PROP_STRING(ctx->out_path) );
	if (ctx->opid_alt)
		gf_filter_pid_set_property(ctx->opid_alt, GF_PROP_PID_URL, &PROP_STRING(ctx->out_path) );
}
static void dasher_check_outpath(GF_DasherCtx *ctx)
{
	if (!ctx->out_path) {
		ctx->out_path = gf_filter_pid_get_destination(ctx->opid);
		if (!ctx->out_path) return;

		if (ctx->mname) {
			char *sep = strstr(ctx->out_path, "://");
			if (sep) {
				char *opath = gf_url_concatenate(ctx->out_path, ctx->mname);
				if (opath) {
					gf_free(ctx->out_path);
					ctx->out_path = opath;
				}
			}
		}
		 
		if (!strncmp(ctx->out_path, "route://", 8) || !strncmp(ctx->out_path, "atsc://", 7))
			ctx->is_route = GF_TRUE;
	}
	 
	if (ctx->opid)
		gf_filter_pid_set_property(ctx->opid, GF_PROP_PID_URL, &PROP_STRING(ctx->out_path) );
	if (ctx->opid_alt)
		gf_filter_pid_set_property(ctx->opid_alt, GF_PROP_PID_URL, &PROP_STRING(ctx->out_path) );
}