view libmpdemux/mpdemux.c @ 7787:05e518badc1b

doc fixes part 1 (more will come when i find the time to read the rest) if anything is not ok, please let me know documentation.html: * OGG -> OGG/OGM (both file formats are supported) * somewhat better wording (no real change of meaning) * update of the current xf86 version from 4.2.0 to 4.2.1 * mga_vid is not old * partial sync of the options with the manpage (someone with deeper knwoledge should check them and finish the sync) * added 2 links about quoting and correct writing of mails to the mailinglists formats.html: * fixing typo interleaved -> non-interleaved (at least i think it's a typo please someone check it) * non-interleaved AVIs should be played with -ni * OGG -> OGG/OGM
author attila
date Fri, 18 Oct 2002 17:57:05 +0000
parents 8162d2f591f9
children
line wrap: on
line source

#include "config.h"
#include <stdlib.h>

#include "../input/input.h"
int mpdemux_check_interrupt(int time) {
  mp_cmd_t* cmd;
  if((cmd = mp_input_get_cmd(time,0)) == NULL)
    return 0;

  switch(cmd->id) {
  case MP_CMD_QUIT:
  case MP_CMD_PLAY_TREE_STEP:
  case MP_CMD_PLAY_TREE_UP_STEP:
  case MP_CMD_PLAY_ALT_SRC_STEP:
    // The cmd will be executed when we are back in the main loop
    if(! mp_input_queue_cmd(cmd)) {
      printf("mpdemux_check_interrupt: can't queue cmd %s\n",cmd->name);
      mp_cmd_free(cmd);
    }
    return 1;
  default:
    mp_cmd_free(cmd);
    return 0;
  }
}