From 640ce767d222ecd027d683a3d3de7646296051b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 13 Jun 2010 16:31:21 +0200 Subject: [PATCH] queue2: Don't ignore failure to open the temporary file location And immediately leave the state change function on failures. --- plugins/elements/gstqueue2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index df8aaea..8dd55f8 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -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; -- 2.7.4