if ( ipc == null ){
return;
}
TranscodeProfile default_profile = getDefaultTranscodeProfile();
if ( default_profile == null ){
TranscodeProfile[] profiles = getTranscodeProfiles();
for ( TranscodeProfile p: profiles ){
if ( p.isStreamable()){
default_profile = p;
break;
}
}
}
synchronized( this ){
if ( upnpav_ipc != null ){
return;
}
upnpav_ipc = ipc;
if ( default_profile != null && default_profile.isStreamable()){
dynamic_transcode_profile = default_profile;
}
}