From a24bb211d5925749fbce4d5d3ae773ffc8c95959 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 2 Oct 2003 18:50:33 +0000 Subject: [PATCH] Small fixups. --- src/cluster_helper.cpp | 16 ++++++++-------- src/cluster_helper.h | 8 ++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/cluster_helper.cpp b/src/cluster_helper.cpp index a4154c042..d7ca1f601 100644 --- a/src/cluster_helper.cpp +++ b/src/cluster_helper.cpp @@ -292,14 +292,7 @@ void cluster_helper_c::set_output(mm_io_c *nout) { out = nout; } -typedef struct { - vector groups; - vector durations; - generic_packetizer_c *source; - bool more_data, duration_mandatory; -} render_groups_t; - -static void set_duration_and_timeslices(render_groups_t *rg) { +void cluster_helper_c::set_duration_and_timeslices(render_groups_t *rg) { uint32_t i; int64_t block_duration, def_duration; KaxBlockGroup *group; @@ -348,6 +341,13 @@ static void set_duration_and_timeslices(render_groups_t *rg) { } } +/* + <+Asylum> The chicken and the egg are lying in bed next to each + other after a good hard shag, the chicken is smoking a + cigarette, the egg says "Well that answers that bloody + question doesn't it" +*/ + int cluster_helper_c::render() { KaxCluster *cluster; KaxBlockGroup *new_block_group, *last_block_group; diff --git a/src/cluster_helper.h b/src/cluster_helper.h index ee5b8e472..b46b2148e 100644 --- a/src/cluster_helper.h +++ b/src/cluster_helper.h @@ -44,6 +44,13 @@ typedef struct { int64_t *last_packets; } splitpoint_t; +typedef struct { + vector groups; + vector durations; + generic_packetizer_c *source; + bool more_data, duration_mandatory; +} render_groups_t; + class cluster_helper_c { private: ch_contents_t **clusters; @@ -82,6 +89,7 @@ private: void free_contents(ch_contents_t *clstr); void check_clusters(int num); bool all_references_resolved(ch_contents_t *cluster); + void set_duration_and_timeslices(render_groups_t *rg); }; extern cluster_helper_c *cluster_helper;