diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-11-17 09:46:08 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-17 09:46:08 -0300 |
commit | 081a236c6739e7f6d45731ec0c002d2269f2367b (patch) | |
tree | eab0838c2ccd8fd8e997aaf151a5ca9e15c5a06a /drivers | |
parent | 8420c24f7f35cdd7adbc7d4595cb1756020ab127 (diff) |
-Merged Script and Help tabs
-Help tabs can be opened many at the same time
-Color temperatures for opened scripts
-Dominant script opening when switching scene tab
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/theora/video_stream_theora.cpp | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/drivers/theora/video_stream_theora.cpp b/drivers/theora/video_stream_theora.cpp index ed87227876..a3c951c484 100644 --- a/drivers/theora/video_stream_theora.cpp +++ b/drivers/theora/video_stream_theora.cpp @@ -243,7 +243,9 @@ void VideoStreamPlaybackTheora::set_file(const String& p_file) { /* Only interested in Vorbis/Theora streams */ int stateflag = 0; - int audio_track_skip=audio_track; + int audio_track_skip=audio_track; + + while(!stateflag){ int ret=buffer_data(); if(ret==0)break; @@ -270,14 +272,18 @@ void VideoStreamPlaybackTheora::set_file(const String& p_file) { theora_p=1; }else if(!vorbis_p && vorbis_synthesis_headerin(&vi,&vc,&op)>=0){ /* it is vorbis */ - if (audio_track_skip) { - vorbis_info_clear(&vi); - vorbis_comment_clear(&vc); - audio_track_skip--; - } else { - copymem(&vo,&test,sizeof(test)); - vorbis_p=1; - } + if (audio_track_skip) { + vorbis_info_clear(&vi); + vorbis_comment_clear(&vc); + ogg_stream_clear(&test); + vorbis_info_init(&vi); + vorbis_comment_init(&vc); + + audio_track_skip--; + } else { + copymem(&vo,&test,sizeof(test)); + vorbis_p=1; + } }else{ /* whatever it is, we don't care about it */ ogg_stream_clear(&test); |