// EQUIV(pixels_per_second, that.pixels_per_second) &&
wlen == that.wlen &&
!memcmp(wtext, that.wtext, wlen * sizeof(wchr_t)) &&
- title_x == that.title_x && title_y == that.title_y &&
+ EQUIV(title_x, that.title_x) && EQUIV(title_y, that.title_y) &&
title_w == that.title_w && title_h == that.title_h &&
// window_w == that.window_w && window_h == that.window_h &&
timecode == that.timecode &&
background = 0;
}
delete render_engine;
- delete video_cache;
+ if( video_cache )
+ video_cache->remove_user();
delete overlay_frame;
delete bg_file;
delete bg_frame;
Indexable *TitleMain::open_background(const char *filename)
{
delete render_engine; render_engine = 0;
- delete video_cache; video_cache = 0;
+ if( video_cache ) { video_cache->remove_user(); video_cache = 0; }
delete bg_file; bg_file = new File;
Asset *asset = new Asset(filename);