- psz_sap_option = strdup( "sap" );
-
- i_size = 40 + strlen(mux) + strlen(address) +
- strlen( psz_sap_option);
- psz_opt = (char *)malloc( i_size * sizeof(char) );
- snprintf( psz_opt, i_size,
- ":sout=#standard{mux=%s,url=%s,access=%s,%s}",
- mux, address,method, psz_sap_option);
- if( psz_sap_option ) free( psz_sap_option );
- }
- else
- {
- i_size = 40 + strlen(mux) + strlen(address);
- psz_opt = (char *)malloc( i_size * sizeof(char) );
- snprintf( psz_opt, i_size,
- ":sout=#standard{mux=%s,url=%s,access=%s}",
- mux, address,method);