}
GST_INFO_OBJECT (ogg, "Bisection needed %d + %d steps",
ogg->push_bisection_steps[0], ogg->push_bisection_steps[1]);
+ ogg->stats_bisection_steps[0] += ogg->push_bisection_steps[0];
+ ogg->stats_bisection_steps[1] += ogg->push_bisection_steps[1];
+ if (ogg->stats_bisection_max_steps[0] < ogg->push_bisection_steps[0])
+ ogg->stats_bisection_max_steps[0] = ogg->push_bisection_steps[0];
+ if (ogg->stats_bisection_max_steps[1] < ogg->push_bisection_steps[1])
+ ogg->stats_bisection_max_steps[1] = ogg->push_bisection_steps[1];
+ ogg->stats_nbisections++;
+ GST_INFO_OBJECT (ogg,
+ "So far, %.2f + %.2f bisections needed per seek (max %d + %d)",
+ ogg->stats_bisection_steps[0] / (float) ogg->stats_nbisections,
+ ogg->stats_bisection_steps[1] / (float) ogg->stats_nbisections,
+ ogg->stats_bisection_max_steps[0],
+ ogg->stats_bisection_max_steps[1]);
}
}
} else if (ogg->push_state == PUSH_LINEAR1) {
ogg->push_lock = g_mutex_new ();
ogg->chains = g_array_new (FALSE, TRUE, sizeof (GstOggChain *));
+ ogg->stats_nbisections = 0;
+ ogg->stats_bisection_steps[0] = 0;
+ ogg->stats_bisection_steps[1] = 0;
+ ogg->stats_bisection_max_steps[0] = 0;
+ ogg->stats_bisection_max_steps[1] = 0;
+
ogg->newsegment = NULL;
}
gboolean push_disable_seeking;
gint push_bisection_steps[2];
+ gint stats_bisection_steps[2];
+ gint stats_bisection_max_steps[2];
+ gint stats_nbisections;
/* ogg stuff */
ogg_sync_state sync;