struct video_priv *vid_priv;
uint scene_id;
struct scene *scn;
- bool done, save;
int ret;
ret = cedit_prepare(exp, &vid_priv, &scn);
return log_msg_ret("prep", ret);
scene_id = ret;
- done = false;
- save = false;
+ exp->done = false;
+ exp->save = false;
do {
struct expo_action act;
cedit_arange(exp, vid_priv, scene_id);
switch (scn->highlight_id) {
case EXPOID_SAVE:
- done = true;
- save = true;
+ exp->done = true;
+ exp->save = true;
break;
case EXPOID_DISCARD:
- done = true;
+ exp->done = true;
break;
}
break;
break;
case EXPOACT_QUIT:
log_debug("quitting\n");
- done = true;
+ exp->done = true;
break;
default:
break;
} else if (ret != -EAGAIN) {
return log_msg_ret("cep", ret);
}
- } while (!done);
+ } while (!exp->done);
if (ret)
return log_msg_ret("end", ret);
- if (!save)
+ if (!exp->save)
return -EACCES;
return 0;
* @text_mode: true to use text mode for the menu (no vidconsole)
* @popup: true to use popup menus, instead of showing all items
* @priv: Private data for the controller
+ * @done: Indicates that a cedit session is complete and the user has quit
+ * @save: Indicates that cedit data should be saved, rather than discarded
* @theme: Information about fonts styles, etc.
* @scene_head: List of scenes
* @str_head: list of strings
bool text_mode;
bool popup;
void *priv;
+ bool done;
+ bool save;
struct expo_theme theme;
struct list_head scene_head;
struct list_head str_head;