From 9b06b5ed85ec28097428e7fe35631ce3a04685b5 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 16 Apr 2008 07:11:12 +0300 Subject: Move correct_pts to options struct --- libmpdemux/demuxer.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libmpdemux/demuxer.c') diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index c11c8a035a..377b34fd08 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -738,9 +738,6 @@ int get_demuxer_type_from_name(char *demuxer_name, int *force) int extension_parsing = 1; // 0=off 1=mixed (used only for unstable formats) -int correct_pts = 0; -int user_correct_pts = -1; - /* NOTE : Several demuxers may be opened at the same time so demuxers should NEVER rely on an external var to enable them @@ -1045,9 +1042,9 @@ demuxer_t *demux_open(struct MPOpts *opts, stream_t *vs, int file_format, else res = vd; - correct_pts = user_correct_pts; - if (correct_pts < 0) - correct_pts = + opts->correct_pts = opts->user_correct_pts; + if (opts->correct_pts < 0) + opts->correct_pts = demux_control(res, DEMUXER_CTRL_CORRECT_PTS, NULL) == DEMUXER_CTRL_OK; return res; -- cgit v1.2.3