Fix a crash when the gst state change takes ages

This commit is contained in:
David Sansome 2010-08-04 20:32:53 +00:00
parent 6f63dcc37f
commit 0b85797e45
1 changed files with 3 additions and 0 deletions

View File

@ -506,6 +506,9 @@ void GstEngine::PlayDone() {
watcher->deleteLater();
GstStateChangeReturn ret = watcher->result();
if (!current_pipeline_)
return;
if (ret == GST_STATE_CHANGE_FAILURE) {
// Failure, but we got a redirection URL - try loading that instead
QUrl redirect_url = current_pipeline_->redirect_url();