Merge pull request #6310 from jbroadus/fix-unhandled-error-condition
Fix potential use of streamer element after deletion.
This commit is contained in:
commit
7885c61a39
@ -1004,7 +1004,10 @@ void GstEnginePipeline::TransitionToNext() {
|
|||||||
|
|
||||||
ignore_tags_ = true;
|
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);
|
gst_element_set_state(uridecodebin_, GST_STATE_PLAYING);
|
||||||
MaybeLinkDecodeToAudio();
|
MaybeLinkDecodeToAudio();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user