summaryrefslogtreecommitdiff
path: root/gst/mpegtsmux
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2011-03-26 16:12:18 +1100
committerJan Schmidt <thaytan@noraisin.net>2011-03-26 16:18:22 +1100
commit5111540ceb04fbbfdb01b2c64911e04dbae291a8 (patch)
treefe145b10883e27e519a617a6cffad18a5b4bd9ac /gst/mpegtsmux
parent9a26173a57b05ecb497fe1fca0168b5cbd4c0167 (diff)
downloadgstreamer-plugins-bad-5111540ceb04fbbfdb01b2c64911e04dbae291a8.tar.gz
Use correct clock when checking whether to write a new PCR
The PCR clocks against the 27MHz SCR clock, so check it correctly to avoid writing the PCR too often. Partially fixes: #611046
Diffstat (limited to 'gst/mpegtsmux')
-rw-r--r--gst/mpegtsmux/tsmux/tsmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegtsmux/tsmux/tsmux.c b/gst/mpegtsmux/tsmux/tsmux.c
index 1a50e7224..e16019702 100644
--- a/gst/mpegtsmux/tsmux/tsmux.c
+++ b/gst/mpegtsmux/tsmux/tsmux.c
@@ -723,7 +723,7 @@ tsmux_write_stream_packet (TsMux * mux, TsMuxStream * stream)
/* Need to decide whether to write a new PCR in this packet */
if (stream->last_pcr == -1 ||
(cur_pcr - stream->last_pcr >
- (TSMUX_CLOCK_FREQ / TSMUX_DEFAULT_PCR_FREQ))) {
+ (TSMUX_SYS_CLOCK_FREQ / TSMUX_DEFAULT_PCR_FREQ))) {
stream->pi.flags |=
TSMUX_PACKET_FLAG_ADAPTATION | TSMUX_PACKET_FLAG_WRITE_PCR;