projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pluginclient cr=apply in option value textbox, add loop_mode for vwdw
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
assetpopup.C
diff --git
a/cinelerra-5.1/cinelerra/assetpopup.C
b/cinelerra-5.1/cinelerra/assetpopup.C
index 56832ca9100e8e994cbf8e0f5446a2b0783b588e..bc4281642a3563acd1bfb4c671c72ae77d4a0849 100644
(file)
--- a/
cinelerra-5.1/cinelerra/assetpopup.C
+++ b/
cinelerra-5.1/cinelerra/assetpopup.C
@@
-951,8
+951,8
@@
int SnapshotMenuItem::handle_event()
command.realtime = 0;
RenderEngine render_engine(0, preferences, 0, 0);
command.realtime = 0;
RenderEngine render_engine(0, preferences, 0, 0);
- CICache
video_c
ache(preferences);
- render_engine.set_vcache(
&
video_cache);
+ CICache
*video_cache = new CIC
ache(preferences);
+ render_engine.set_vcache(video_cache);
render_engine.arm_command(&command);
double position = edl->local_session->get_selectionstart(1);
render_engine.arm_command(&command);
double position = edl->local_session->get_selectionstart(1);
@@
-962,6
+962,7
@@
int SnapshotMenuItem::handle_event()
if( !ret )
ret = file.write_video_buffer(1);
file.close_file();
if( !ret )
ret = file.write_video_buffer(1);
file.close_file();
+ video_cache->remove_user();
}
if( !ret ) {
asset->folder_no = AW_MEDIA_FOLDER;
}
if( !ret ) {
asset->folder_no = AW_MEDIA_FOLDER;