queue2: Don't ignore failure to open the temporary file location

And immediately leave the state change function on failures.
This commit is contained in:
Sebastian Dröge 2010-06-13 16:31:21 +02:00
parent 6ff314c75a
commit 640ce767d2

View file

@ -2288,8 +2288,14 @@ gst_queue2_change_state (GstElement * element, GstStateChange transition)
break;
}
if (ret == GST_STATE_CHANGE_FAILURE)
return ret;
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
if (ret == GST_STATE_CHANGE_FAILURE)
return ret;
switch (transition) {
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
break;