Merge pull request #43 from UbiCastTeam/master

fix comparaison to detect source uniqueness in a pipeline, fixes #42
This commit is contained in:
Ruben Gonzalez 2019-08-30 10:20:29 +02:00 committed by GitHub
commit 5f020ad5b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -598,7 +598,9 @@ where
} => (audio, video, Some(ip_address), Some(ndi_name.as_str())),
};
if val_ip_address == ip_address.as_ref() || val_ndi_name == ndi_name {
if (val_ip_address.is_some() && val_ip_address == ip_address.as_ref())
|| (val_ip_address.is_none() && val_ndi_name == ndi_name)
{
if (val_video.is_some() || !T::IS_VIDEO) && (val_audio.is_some() || T::IS_VIDEO) {
gst_element_error!(
element,