switch (cmd->type) {
//case VOUT_CONTROL_OSD_MESSAGE:
case VOUT_CONTROL_OSD_TITLE:
- free(cmd->u.message.string);
+ case VOUT_CONTROL_CHANGE_FILTERS:
+ free(cmd->u.string);
break;
#if 0
case VOUT_CONTROL_OSD_TEXT:
cmd.u.pair.b = b;
vout_control_Push(ctrl, &cmd);
}
+void vout_control_PushString(vout_control_t *ctrl, int type, const char *string)
+{
+ vout_control_cmd_t cmd;
+
+ vout_control_cmd_Init(&cmd, type);
+ cmd.u.string = strdup(string);
+ vout_control_Push(ctrl, &cmd);
+}
int vout_control_Pop(vout_control_t *ctrl, vout_control_cmd_t *cmd,
mtime_t deadline, mtime_t timeout)