Merge pull request #33 from sdroege/no-custom-error

Never return gst::FlowError::CustomError outside the element
This commit is contained in:
Alfonso Rodríguez Pereira 2019-07-11 11:06:47 +02:00 committed by GitHub
commit cc63b187b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -462,7 +462,7 @@ impl BaseSrcImpl for NdiAudioSrc {
continue;
}
gst_element_error!(element, gst::ResourceError::Read, ["NDI frame type none or error received, assuming that the source closed the stream...."]);
return Err(gst::FlowError::CustomError);
return Err(gst::FlowError::Error);
} else if frame_type == NDIlib_frame_type_e::NDIlib_frame_type_none
&& _settings.loss_threshold == 0
{

View file

@ -462,7 +462,7 @@ impl BaseSrcImpl for NdiVideoSrc {
continue;
}
gst_element_error!(element, gst::ResourceError::Read, ["NDI frame type none or error received, assuming that the source closed the stream...."]);
return Err(gst::FlowError::CustomError);
return Err(gst::FlowError::Error);
} else if frame_type == NDIlib_frame_type_e::NDIlib_frame_type_none
&& _settings.loss_threshold == 0
{