Original commit message from CVS:
* gst/gstbin.c: (bin_query_latency_fold):
Only care about latency min and max when the sink is actually a live
sink.
2008-06-25 Wim Taymans <wim.taymans@collabora.co.uk>
+ * gst/gstbin.c: (bin_query_latency_fold):
+ Only care about latency min and max when the sink is actually a live
+ sink.
+
+2008-06-25 Wim Taymans <wim.taymans@collabora.co.uk>
+
* docs/design/part-block.txt:
Fix typo.
/* for the combined latency we collect the MAX of all min latencies and
* the MIN of all max latencies */
- if (min > fold->min)
- fold->min = min;
- if (fold->max == -1)
- fold->max = max;
- else if (max < fold->max)
- fold->max = max;
- if (fold->live == FALSE)
- fold->live = live;
+ if (live) {
+ if (min > fold->min)
+ fold->min = min;
+ if (fold->max == -1)
+ fold->max = max;
+ else if (max < fold->max)
+ fold->max = max;
+ if (fold->live == FALSE)
+ fold->live = live;
+ }
} else {
g_value_set_boolean (ret, FALSE);
GST_DEBUG_OBJECT (item, "failed query");