master
John Cox 2013-04-10 18:41:27 +01:00
rodzic b3a3933e81
commit d5f44ce278
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1022,7 +1022,7 @@ retry:
if (!ppe->pcr1_set) if (!ppe->pcr1_set)
{ {
ppe->next_offset = -ppe->next_bytes; ppe->next_offset = 0 - ppe->next_bytes;
ppe->next_bytes += item->length; ppe->next_bytes += item->length;
ppe->pcr_base -= pcr2; ppe->pcr_base -= pcr2;
// next_index set by discontinuity spotter // next_index set by discontinuity spotter
@ -1035,7 +1035,7 @@ retry:
if (pcr_gap > PCR_MS(2000)) if (pcr_gap > PCR_MS(2000))
{ {
// Discontinuity // Discontinuity
fprint_msg("%s: Discontinuity[%d]: gap=%lld\n", __func__, writer->which, pcr_gap); fprint_msg("PCR2: Discontinuity[%d]: gap=%lld\n", writer->which, pcr_gap);
idx = finalize_pcr_time(writer, ppe); idx = finalize_pcr_time(writer, ppe);
goto retry; goto retry;
@ -2107,7 +2107,7 @@ static int write_from_circular(SOCKET output,
// has told us that the timeline has changed radically // has told us that the timeline has changed radically
if (reset || circular->item[circular->start].discontinuity) if (reset || circular->item[circular->start].discontinuity)
{ {
fprint_msg("%s: Discontinuity[%d]: reset=%d, pkt_time=%u\n", __func__, circular->start, reset, this_packet_time); // fprint_msg("%s: Discontinuity[%d]: reset=%d, pkt_time=%u\n", __func__, circular->start, reset, this_packet_time);
// We believe out timeline has gone askew - start a new one // We believe out timeline has gone askew - start a new one
// Set up "now" as our base time, and output our packet right away // Set up "now" as our base time, and output our packet right away