mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-02 00:11:01 +00:00
Merge pull request #43 from UbiCastTeam/master
fix comparaison to detect source uniqueness in a pipeline, fixes #42
This commit is contained in:
commit
5f020ad5b8
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue