From 65ac3e727b1fde1c2d3c601b2777c2d1a1c569aa Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 6 Jan 2011 13:15:17 +0100 Subject: [PATCH] rmdemux: Initialize return variable. In the unlikely event that height is 0 (which is invalid) we would end up never setting the flow return. --- gst/realmedia/rmdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index cff8e3d..e6b8ec6 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -1918,7 +1918,7 @@ gst_rmdemux_stream_clear_cached_subpackets (GstRMDemux * rmdemux, static GstFlowReturn gst_rmdemux_descramble_audio (GstRMDemux * rmdemux, GstRMDemuxStream * stream) { - GstFlowReturn ret; + GstFlowReturn ret = GST_FLOW_ERROR; GstBuffer *outbuf; guint packet_size = stream->packet_size; guint height = stream->subpackets->len; -- 2.7.4