diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-11-10 13:12:47 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-11-10 13:12:47 +0000 |
commit | c88b7dcd587c2211e035954ba4ebf2b67060887b (patch) | |
tree | 8e59cc97e138b3e19e8fd50be50feadf71d2f6da | |
parent | 68c427a5997570685ae730734898a41fa9e75b34 (diff) | |
download | xine-lib-c88b7dcd587c2211e035954ba4ebf2b67060887b.tar.gz xine-lib-c88b7dcd587c2211e035954ba4ebf2b67060887b.tar.bz2 |
set fixed offset, otherwise the offset accumulates during multiple plugin
instantiations
CVS patchset: 3218
CVS date: 2002/11/10 13:12:47
-rw-r--r-- | src/dxr3/dxr3_decode_video.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/dxr3/dxr3_decode_video.c b/src/dxr3/dxr3_decode_video.c index ef2a08858..ff36a2914 100644 --- a/src/dxr3/dxr3_decode_video.c +++ b/src/dxr3/dxr3_decode_video.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_decode_video.c,v 1.18 2002/10/26 16:14:28 mroi Exp $ + * $Id: dxr3_decode_video.c,v 1.19 2002/11/10 13:12:47 mroi Exp $ */ /* dxr3 video decoder plugin. @@ -188,7 +188,6 @@ static video_decoder_t *dxr3_open_plugin(video_decoder_class_t *class_gen, xine_ dxr3_decoder_class_t *class = (dxr3_decoder_class_t *)class_gen; config_values_t *cfg; char tmpstr[128]; - int64_t cur_offset; if (class->instance) return NULL; if (!dxr3_present(stream)) return NULL; @@ -253,11 +252,9 @@ static video_decoder_t *dxr3_open_plugin(video_decoder_class_t *class_gen, xine_ _("Enable this for streams with wrong frame durations."), 10, dxr3_update_correct_durations, this); - if (!this->dxr3_vo->overlay_enabled) { + if (!this->dxr3_vo->overlay_enabled) /* set a/v offset to compensate dxr3 internal delay */ - cur_offset = this->stream->metronom->get_option(this->stream->metronom, METRONOM_AV_OFFSET); - this->stream->metronom->set_option(this->stream->metronom, METRONOM_AV_OFFSET, cur_offset - 21600); - } + this->stream->metronom->set_option(this->stream->metronom, METRONOM_AV_OFFSET, -21600); stream->video_out->open(stream->video_out); |