summaryrefslogtreecommitdiff
path: root/gst/playback/gstdecodebin2.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-08-25 16:22:46 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-08-25 21:01:16 +0300
commit22a138b71687cfc9d995ae38cacf6d756fa7789f (patch)
tree1ff1246d72dad1310e26fab37db2dd214b19a473 /gst/playback/gstdecodebin2.c
parent21e9f844868a07259508eb6c4812662a61d55e65 (diff)
decodebin: Initialize local variables for every retry
Diffstat (limited to 'gst/playback/gstdecodebin2.c')
-rw-r--r--gst/playback/gstdecodebin2.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c
index 2ac1c0f8d..4fa6bd7f6 100644
--- a/gst/playback/gstdecodebin2.c
+++ b/gst/playback/gstdecodebin2.c
@@ -4020,12 +4020,17 @@ debug_sticky_event (GstPad * pad, GstEvent ** event, gpointer user_data)
static gboolean
gst_decode_bin_expose (GstDecodeBin * dbin)
{
- GList *tmp, *endpads = NULL;
- gboolean missing_plugin = FALSE;
- gboolean already_exposed = TRUE;
- gboolean last_group = TRUE;
+ GList *tmp, *endpads;
+ gboolean missing_plugin;
+ gboolean already_exposed;
+ gboolean last_group;
retry:
+ endpads = NULL;
+ missing_plugin = FALSE;
+ already_exposed = TRUE;
+ last_group = TRUE;
+
GST_DEBUG_OBJECT (dbin, "Exposing currently active chains/groups");
/* Don't expose if we're currently shutting down */