From: Sebastian Dröge Date: Tue, 23 Sep 2014 19:55:48 +0000 (+0300) Subject: flacparse: Only calculate with durations != -1 X-Git-Tag: 1.19.3~509^2~4153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91a3d044f08ce612594ca638ce6ded1b3bb85f28;p=platform%2Fupstream%2Fgstreamer.git flacparse: Only calculate with durations != -1 --- diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 6fc92a8..51e1bfc 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -1463,7 +1463,7 @@ gst_flac_parse_generate_headers (GstFlacParse * flacparse) gint64 duration; if (gst_pad_peer_query_duration (GST_BASE_PARSE_SINK_PAD (flacparse), - GST_FORMAT_TIME, &duration)) { + GST_FORMAT_TIME, &duration) && duration != -1) { duration = GST_CLOCK_TIME_TO_FRAMES (duration, flacparse->samplerate); map.data[17] |= (duration >> 32) & 0xff;