summaryrefslogtreecommitdiffstats
path: root/ext/resindvd/gstmpegdemux.h
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-05-14 09:53:25 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-05-14 11:28:15 +0100
commit13694cd654cef130bd97d2498f5e65e8da525722 (patch)
tree2e6c1356c0e474db55849f8740fbfadea509a532 /ext/resindvd/gstmpegdemux.h
parentcae9db0d8c4c3ff939ac6ac1d4d574b2c030b536 (diff)
downloadgst-plugins-bad-13694cd654cef130bd97d2498f5e65e8da525722.tar.gz
gst-plugins-bad-13694cd654cef130bd97d2498f5e65e8da525722.tar.bz2
gst-plugins-bad-13694cd654cef130bd97d2498f5e65e8da525722.zip
resindvd: Make segment updates less aggressive.
When updating a pad, send the update to half a second behind the SCR, which avoids ever updating the start time for a pad to beyond the end of the cell. Also, remember the last actual new-segment start time for each pad, and use it when closing the segment.
Diffstat (limited to 'ext/resindvd/gstmpegdemux.h')
-rw-r--r--ext/resindvd/gstmpegdemux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/resindvd/gstmpegdemux.h b/ext/resindvd/gstmpegdemux.h
index b7b2d9fc..683b7cde 100644
--- a/ext/resindvd/gstmpegdemux.h
+++ b/ext/resindvd/gstmpegdemux.h
@@ -63,6 +63,7 @@ struct _GstFluPSStream {
gboolean notlinked;
gboolean need_segment;
+ GstClockTime last_seg_start;
GstClockTime last_ts;
GstClockTime segment_thresh;
};