Merge pull request #6310 from jbroadus/fix-unhandled-error-condition

Fix potential use of streamer element after deletion.
This commit is contained in:
John Maguire 2019-03-20 10:10:48 +00:00 committed by GitHub
commit 7885c61a39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1004,7 +1004,10 @@ void GstEnginePipeline::TransitionToNext() {
ignore_tags_ = true;
ReplaceDecodeBin(next_url_);
if (!ReplaceDecodeBin(next_url_)) {
qLog(Error) << "ReplaceDecodeBin failed with " << next_url_;
return;
}
gst_element_set_state(uridecodebin_, GST_STATE_PLAYING);
MaybeLinkDecodeToAudio();