some cleanup fixes
parent
b58a3fcac9
commit
c5c5ed6c18
Binary file not shown.
|
@ -57,7 +57,11 @@ function Theorafile_Open(filename)
|
||||||
|
|
||||||
function Theorafile_Close(video)
|
function Theorafile_Close(video)
|
||||||
{
|
{
|
||||||
buffer_delete(video.yuvBuffer);
|
surface_free(video.ySurface);
|
||||||
|
surface_free(video.uSurface);
|
||||||
|
surface_free(video.vSurface);
|
||||||
|
surface_free(video.videoSurface);
|
||||||
|
//buffer_delete(video.yuvBuffer);
|
||||||
vertex_format_delete(video.triangle_buffer_format);
|
vertex_format_delete(video.triangle_buffer_format);
|
||||||
vertex_delete_buffer(video.triangle_buffer);
|
vertex_delete_buffer(video.triangle_buffer);
|
||||||
TheorafileGMS_Close(video.handle);
|
TheorafileGMS_Close(video.handle);
|
||||||
|
|
|
@ -67,7 +67,9 @@ char* TheorafileGMS_Open(char* filename)
|
||||||
|
|
||||||
void TheorafileGMS_Close(char* filePointer)
|
void TheorafileGMS_Close(char* filePointer)
|
||||||
{
|
{
|
||||||
SDL_free(filePointer);
|
OggTheora_File* file = (OggTheora_File*)filePointer;
|
||||||
|
tf_close(file);
|
||||||
|
/* SDL_free(file); */ /* FIXME: why the hell is this crashing game maker */
|
||||||
}
|
}
|
||||||
|
|
||||||
double TheorafileGMS_HasVideo(char* filePointer)
|
double TheorafileGMS_HasVideo(char* filePointer)
|
||||||
|
|
Loading…
Reference in New Issue