summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ead8d56)
raw | patch | inline | side by side (parent: ead8d56)
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | |
Thu, 6 Jan 2011 18:29:06 +0000 (18:29 +0000) | ||
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | |
Mon, 24 Jan 2011 18:44:41 +0000 (19:44 +0100) |
The new delay is three times as much as the old one, and just happens
to let me properly decode my "Princess Mononoke" DVD, on which dvdreadsrc
was chocking before at 5:11.
While there, merge the constants used in two places into a define.
https://bugzilla.gnome.org/show_bug.cgi?id=539708
to let me properly decode my "Princess Mononoke" DVD, on which dvdreadsrc
was chocking before at 5:11.
While there, merge the constants used in two places into a define.
https://bugzilla.gnome.org/show_bug.cgi?id=539708
gst/mpegstream/gstdvddemux.c | patch | blob | history |
index 8faadea4cbe9ba2d69a87a5f5c9c15f1a65d45a8..4c53fbfa6f92ee56ff3ba4215450aecec11a90ba 100644 (file)
*/
#define PTM_DISCONT_ADJUST (0.3 * GST_SECOND)
#define INITIAL_END_PTM (-1)
+#define MAX_GAP ( 3 * GST_SECOND / 2 )
+#define MAX_GAP_TOLERANCE ( GST_SECOND / 20 )
GST_DEBUG_CATEGORY_STATIC (gstdvddemux_debug);
#define GST_CAT_DEFAULT (gstdvddemux_debug)
gst_element_no_more_pads (GST_ELEMENT (dvd_demux));
/* Keep video/audio/subtitle pads within 1/2 sec of the SCR */
- mpeg_demux->max_gap = GST_SECOND / 2;
- mpeg_demux->max_gap_tolerance = GST_SECOND / 20;
+ mpeg_demux->max_gap = MAX_GAP;
+ mpeg_demux->max_gap_tolerance = MAX_GAP_TOLERANCE;
} else {
GST_DEBUG_OBJECT (dvd_demux, "dvddemux Forwarding DVD event %s to all pads",
event_type);
dvd_demux->mpeg_version = 0;
/* Reset max_gap handling */
- mpeg_demux->max_gap = 0.5 * GST_SECOND;
- mpeg_demux->max_gap_tolerance = 0.05 * GST_SECOND;
+ mpeg_demux->max_gap = MAX_GAP;
+ mpeg_demux->max_gap_tolerance = MAX_GAP_TOLERANCE;
}
static void