some fixes
-fix compilation on tres/tscn on MSVC -fixed theora playback performance, closes #3004
This commit is contained in:
parent
17a4ab992c
commit
7ba484bc74
@ -905,7 +905,7 @@ void ResourceInteractiveLoaderBinary::open(FileAccess *p_f) {
|
|||||||
|
|
||||||
error=ERR_FILE_UNRECOGNIZED;
|
error=ERR_FILE_UNRECOGNIZED;
|
||||||
ERR_EXPLAIN("Unrecognized binary resource file: "+local_path);
|
ERR_EXPLAIN("Unrecognized binary resource file: "+local_path);
|
||||||
ERR_FAIL_V();
|
ERR_FAIL();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool big_endian = f->get_32();
|
bool big_endian = f->get_32();
|
||||||
|
@ -411,6 +411,7 @@ void VideoStreamPlaybackTheora::set_file(const String& p_file) {
|
|||||||
th_decode_ctl(td,TH_DECCTL_GET_PPLEVEL_MAX,&pp_level_max,
|
th_decode_ctl(td,TH_DECCTL_GET_PPLEVEL_MAX,&pp_level_max,
|
||||||
sizeof(pp_level_max));
|
sizeof(pp_level_max));
|
||||||
pp_level=pp_level_max;
|
pp_level=pp_level_max;
|
||||||
|
pp_level=0;
|
||||||
th_decode_ctl(td,TH_DECCTL_SET_PPLEVEL,&pp_level,sizeof(pp_level));
|
th_decode_ctl(td,TH_DECCTL_SET_PPLEVEL,&pp_level,sizeof(pp_level));
|
||||||
pp_inc=0;
|
pp_inc=0;
|
||||||
|
|
||||||
@ -620,7 +621,6 @@ void VideoStreamPlaybackTheora::update(float p_delta) {
|
|||||||
|
|
||||||
if(videobuf_time>=get_time()) {
|
if(videobuf_time>=get_time()) {
|
||||||
frame_done=true;
|
frame_done=true;
|
||||||
|
|
||||||
} else{
|
} else{
|
||||||
/*If we are too slow, reduce the pp level.*/
|
/*If we are too slow, reduce the pp level.*/
|
||||||
pp_inc=pp_level>0?-1:0;
|
pp_inc=pp_level>0?-1:0;
|
||||||
|
@ -170,7 +170,6 @@ def get_flags():
|
|||||||
return [
|
return [
|
||||||
('freetype','builtin'), #use builtin freetype
|
('freetype','builtin'), #use builtin freetype
|
||||||
('openssl','builtin'), #use builtin openssl
|
('openssl','builtin'), #use builtin openssl
|
||||||
('theora','no'),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def build_res_file( target, source, env ):
|
def build_res_file( target, source, env ):
|
||||||
|
Loading…
Reference in New Issue
Block a user