2009-05-17 15:24:04 -07:00
|
|
|
diff --git a/media/liboggplay/src/liboggplay/oggplay_callback_info.c b/media/liboggplay/src/liboggplay/oggplay_callback_info.c
|
|
|
|
--- a/media/liboggplay/src/liboggplay/oggplay_callback_info.c
|
|
|
|
+++ b/media/liboggplay/src/liboggplay/oggplay_callback_info.c
|
2009-09-01 15:33:43 -07:00
|
|
|
@@ -133,21 +133,23 @@ oggplay_callback_info_prepare(OggPlay *m
|
2009-05-17 15:24:04 -07:00
|
|
|
|
|
|
|
track_info->available_records = count;
|
|
|
|
track_info->required_records = 0;
|
|
|
|
|
|
|
|
track_info->data_type = track->decoded_type;
|
|
|
|
|
|
|
|
count = 0;
|
|
|
|
for (p = q; p != NULL; p = p->next) {
|
|
|
|
- track_info->records[count++] = p;
|
|
|
|
- if (p->presentation_time <= me->target + track->offset) {
|
|
|
|
- track_info->required_records++;
|
|
|
|
- p->has_been_presented = 1;
|
|
|
|
- //lpt = p->presentation_time;
|
|
|
|
+ if (!p->has_been_presented) {
|
|
|
|
+ track_info->records[count++] = p;
|
|
|
|
+ if (p->presentation_time <= me->target + track->offset) {
|
|
|
|
+ track_info->required_records++;
|
|
|
|
+ p->has_been_presented = 1;
|
|
|
|
+ //lpt = p->presentation_time;
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (track_info->required_records > 0) {
|
|
|
|
/*
|
|
|
|
* if the StreamState is FIRST_DATA then update it to INITIALISED,
|
|
|
|
* as we've marked the first data instance
|
|
|
|
*/
|