From: Luca Ognibene Date: Sun, 12 Apr 2009 20:26:33 +0000 (+0200) Subject: multifdsink: fix error in sync-method X-Git-Tag: 1.19.3~511^2~9770 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1beabc48e865ee4da0dcd430b1cc01afaddc8dfe;p=platform%2Fupstream%2Fgstreamer.git multifdsink: fix error in sync-method Multifdsink did not handle sync-method=latest-keyframe correctly when the soft-limit is set to -1 (unlimited). Fixes #578583. --- diff --git a/gst/tcp/gstmultifdsink.c b/gst/tcp/gstmultifdsink.c index af43790..ae87a38 100644 --- a/gst/tcp/gstmultifdsink.c +++ b/gst/tcp/gstmultifdsink.c @@ -2309,11 +2309,12 @@ restart: GstBuffer *buf; /* no point in searching beyond the soft-max if any. */ - if (soft_max_buffers) { + if (soft_max_buffers > 0) { limit = MIN (limit, soft_max_buffers); } - GST_LOG_OBJECT (sink, "extending queue to include sync point, now at %d", - max_buffer_usage); + GST_LOG_OBJECT (sink, + "extending queue to include sync point, now at %d, limit is %d", + max_buffer_usage, limit); for (i = 0; i < limit; i++) { buf = g_array_index (sink->bufqueue, GstBuffer *, i); if (is_sync_frame (sink, buf)) {