Commit 1beabc48 authored by Luca Ognibene's avatar Luca Ognibene Committed by Wim Taymans
Browse files

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.
parent 251f152c
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment