maybe fix stop issue in theora

This commit is contained in:
Juan Linietsky 2015-11-04 09:46:25 -03:00
parent f201aa22fe
commit 800c575b13

View File

@ -178,7 +178,7 @@ void VideoStreamPlaybackTheora::video_write(void){
void VideoStreamPlaybackTheora::clear() { void VideoStreamPlaybackTheora::clear() {
if (file_name == "") if (!file)
return; return;
if(vorbis_p){ if(vorbis_p){
@ -208,6 +208,10 @@ void VideoStreamPlaybackTheora::clear() {
frames_pending = 0; frames_pending = 0;
videobuf_time = 0; videobuf_time = 0;
if (file) {
memdelete(file);
}
file=NULL;
playing = false; playing = false;
}; };