projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
labels follow edits fix, group only ungrouped edits, add reset to 7 plugins, add...
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
edit.C
diff --git
a/cinelerra-5.1/cinelerra/edit.C
b/cinelerra-5.1/cinelerra/edit.C
index fc36b187f6cca511f92b205ef4cf81709b6e58e5..20e8b93bff063052288fde2966e89733f5e97347 100644
(file)
--- a/
cinelerra-5.1/cinelerra/edit.C
+++ b/
cinelerra-5.1/cinelerra/edit.C
@@
-242,14
+242,13
@@
int Edit::silence()
asset || nested_edl :
*((SEdit *)this)->get_text()) ? 0 : 1;
}
asset || nested_edl :
*((SEdit *)this)->get_text()) ? 0 : 1;
}
-void Edit::mute()
+
+void Edit::set_selected(int v)
{
{
- if( track->data_type != TRACK_SUBTITLE ) {
- asset = 0;
- nested_edl = 0;
- }
+ if( group_id )
+ edl->tracks->set_group_selected(group_id, v);
else
else
-
*((SEdit *)this)->get_text() =
0;
+
is_selected = v >= 0 ? v : !is_selected ? 1 :
0;
}
void Edit::copy_from(Edit *edit)
}
void Edit::copy_from(Edit *edit)
@@
-389,7
+388,8
@@
int Edit::dump(FILE *fp)
asset,
asset ? asset->path : "");
fflush(fp);
asset,
asset ? asset->path : "");
fflush(fp);
- fprintf(fp," channel %d, color %08x, group_id %d\n", channel, color, group_id);
+ fprintf(fp," channel %d, color %08x, group_id %d, is_selected %d\n",
+ channel, color, group_id, is_selected);
if(transition)
{
fprintf(fp," TRANSITION %p\n", transition);
if(transition)
{
fprintf(fp," TRANSITION %p\n", transition);