+rtp:
+ if (mrl.psz_name[0] == '[')
+ {
+ port = strstr (mrl.psz_name, "]:");
+ if (port != NULL)
+ port++;
+ }
+ else
+ port = strchr (mrl.psz_name, ':');
+ if (port != NULL)
+ *port++ = '\0'; /* erase ':' */
+
+ if (asprintf (&psz_chain,
+ "rtp{mux=\"%s\",proto=\"%s\",dst=\"%s%s%s\"}",
+ mrl.psz_way, mrl.psz_access, mrl.psz_name,
+ port ? "\",port=\"" : "", port ? port : "") == -1)
+ psz_chain = NULL;