rmdemux: Initialize return variable.
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 6 Jan 2011 12:15:17 +0000 (13:15 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 6 Jan 2011 12:15:17 +0000 (13:15 +0100)
In the unlikely event that height is 0 (which is invalid) we would end up
never setting the flow return.

gst/realmedia/rmdemux.c

index cff8e3d..e6b8ec6 100644 (file)
@@ -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;