From: Mark Nauwelaerts Date: Wed, 12 Jan 2011 13:40:37 +0000 (+0100) Subject: baseparse: ensure non-empty candidate frames X-Git-Tag: RELEASE-0.10.33~104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f933050b0a2f8b2e4d9b5da025084aa546eec74;p=platform%2Fupstream%2Fgstreamer.git baseparse: ensure non-empty candidate frames --- diff --git a/gst/audioparsers/gstbaseparse.c b/gst/audioparsers/gstbaseparse.c index 88ed927..c02541d 100644 --- a/gst/audioparsers/gstbaseparse.c +++ b/gst/audioparsers/gstbaseparse.c @@ -1958,7 +1958,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) GstFlowReturn ret = GST_FLOW_OK; GstBuffer *outbuf = NULL; GstBuffer *tmpbuf = NULL; - guint fsize = 0; + guint fsize = 1; gint skip = -1; const guint8 *data; guint old_min_size = 0, min_size, av; @@ -2293,7 +2293,7 @@ gst_base_parse_scan_frame (GstBaseParse * parse, GstBaseParseClass * klass, { GstBuffer *buffer, *outbuf; GstFlowReturn ret = GST_FLOW_OK; - guint fsize = 0, min_size, old_min_size = 0; + guint fsize = 1, min_size, old_min_size = 0; gint skip = 0; g_return_val_if_fail (frame != NULL, GST_FLOW_ERROR);