From bb6697ba4c7615d0510e0722b7feb27b5d6aa446 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 19 Apr 2009 14:03:58 +0200 Subject: [PATCH] asfdemux: Initialize flow for a corner case. This might be caused by entering the if() line 1214 and then not having any activated_streams.. resulting in reaching line 1267 without having any valid flow value. --- gst/asfdemux/gstasfdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 11a2fdc795..8e852b7a28 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -1196,7 +1196,7 @@ gst_asf_demux_push_complete_payloads (GstASFDemux * demux, gboolean force) static void gst_asf_demux_loop (GstASFDemux * demux) { - GstFlowReturn flow; + GstFlowReturn flow = GST_FLOW_OK; GstBuffer *buf = NULL; guint64 off;