From: Guenter B. <gu...@us...> - 2002-08-12 01:18:38
|
Update of /cvsroot/xine/xine-lib/src/libdivx4 In directory usw-pr-cvs1:/tmp/cvs-serv22828/src/libdivx4 Modified Files: Tag: new_api xine_decoder.c Log Message: more fixes and adaptions to new configfile interface Index: xine_decoder.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/libdivx4/xine_decoder.c,v retrieving revision 1.40.2.1 retrieving revision 1.40.2.2 diff -u -r1.40.2.1 -r1.40.2.2 --- xine_decoder.c 24 Jul 2002 22:39:22 -0000 1.40.2.1 +++ xine_decoder.c 12 Aug 2002 01:18:33 -0000 1.40.2.2 @@ -502,7 +502,7 @@ this->buf = NULL; } -static void divx4_update_postproc(void *this_gen, cfg_entry_t *entry) { +static void divx4_update_postproc(void *this_gen, xine_cfg_entry_t *entry) { divx4_decoder_t *this = (divx4_decoder_t *) this_gen; @@ -510,8 +510,8 @@ printf ("divx4: update_postproc this=0x%08x, decoder_ok = %d\n", this, this->decoder_ok); #endif - if( this->postproc != entry->num_value ) { - this->postproc = entry->num_value; + if( this->postproc != entry->value.values.number) { + this->postproc = entry->value.values.number; divx4_set_pp( this ); } } @@ -569,7 +569,7 @@ us from then on. */ libdecore_name = cfg->register_string (cfg, "codec.divx4_libdivxdecore", "libdivxdecore.so", _("Relative path to libdivxdecore.so to open"), - NULL, NULL, NULL); + NULL, 0, NULL, NULL); libdecore_handle = dlopen(libdecore_name, RTLD_LAZY); if (libdecore_handle) @@ -594,20 +594,20 @@ this->video_decoder.dispose = divx4_dispose; this->video_decoder.priority = cfg->register_num (cfg, "codec.divx4_priority", 4, _("priority of the divx4 plugin (>5 => enable)"), - NULL, NULL, NULL); + NULL, 0, NULL, NULL); this->decore = libdecore_func; this->postproc = cfg->register_range (cfg, "codec.divx4_postproc", 3, 0, 6, _("the postprocessing level, 0 = none and fast, 6 = all and slow"), - NULL, divx4_update_postproc, this); + NULL, 10, divx4_update_postproc, this); this->can_handle_311 = cfg->register_bool (cfg, "codec.divx4_msmpeg4v3", 1, _("use divx4 plugin for msmpeg4v3 streams"), - NULL, NULL, NULL); + NULL, 10, NULL, NULL); this->size = 0; /* allow override of version checking by user */ this->version = cfg->register_num(cfg, "codec.divx4_forceversion", 0, _("Divx version to check for (set to 0 (default) if unsure)"), - NULL, NULL, NULL); + NULL, 20, NULL, NULL); /* if the version set in the config file, we can check right now. * otherwise postpone until we retrieve the version from the library |