Fix a crash when the gst state change takes ages
This commit is contained in:
parent
6f63dcc37f
commit
0b85797e45
|
@ -506,6 +506,9 @@ void GstEngine::PlayDone() {
|
||||||
watcher->deleteLater();
|
watcher->deleteLater();
|
||||||
GstStateChangeReturn ret = watcher->result();
|
GstStateChangeReturn ret = watcher->result();
|
||||||
|
|
||||||
|
if (!current_pipeline_)
|
||||||
|
return;
|
||||||
|
|
||||||
if (ret == GST_STATE_CHANGE_FAILURE) {
|
if (ret == GST_STATE_CHANGE_FAILURE) {
|
||||||
// Failure, but we got a redirection URL - try loading that instead
|
// Failure, but we got a redirection URL - try loading that instead
|
||||||
QUrl redirect_url = current_pipeline_->redirect_url();
|
QUrl redirect_url = current_pipeline_->redirect_url();
|
||||||
|
|
Loading…
Reference in New Issue