public static bool ParseCommands(Gst.Query query, out Gst.Interfaces.NavigationCommand[] cmds)
        {
            uint len;

            cmds = null;
            if (!gst_navigation_query_parse_commands_length(query.Handle, out len))
            {
                return(false);
            }

            cmds = new Gst.Interfaces.NavigationCommand[len];

            for (uint i = 0; i < len; i++)
            {
                int cmd;

                if (!gst_navigation_query_parse_commands_nth(query.Handle, i, out cmd))
                {
                    return(false);
                }
                cmds[i] = (Gst.Interfaces.NavigationCommand)cmd;
            }

            return(true);
        }
        public static bool ParseCommand(Gst.Event evnt, out Gst.Interfaces.NavigationCommand command)
        {
            int  raw_command;
            bool ret = gst_navigation_event_parse_command(evnt.Handle, out raw_command);

            command = (Gst.Interfaces.NavigationCommand)raw_command;

            return(ret);
        }
예제 #3
0
    public static bool ParseCommands (Gst.Query query, out Gst.Interfaces.NavigationCommand[] cmds) {
      uint len;

      cmds = null;
      if (!gst_navigation_query_parse_commands_length (query.Handle, out len))
        return false;

      cmds = new Gst.Interfaces.NavigationCommand[len];

      for (uint i = 0; i < len; i++) {
        int cmd;

        if (!gst_navigation_query_parse_commands_nth (query.Handle, i, out cmd))
          return false;
        cmds[i] = (Gst.Interfaces.NavigationCommand) cmd;
      }

      return true;
    }