/* dvbcut Copyright (c) 2005 Sven Over This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include #include #include #ifdef HAVE_LIB_AO #include #endif // HAVE_LIB_AO #include extern "C" { #include } #include #include #include "dvbcut.h" #include "mpgfile.h" #include "index.h" static char *argv0; void usage_exit(int rv=1) { fprintf(stderr,"Usage:\n %s -generateidx [-idx ] \n",argv0); exit(rv); } int main(int argc, char *argv[]) { argv0=argv[0]; bool generateidx=false; for(int i=1;iopen(filename,idxfilename); if (main) { a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); rv = a.exec(); } #ifdef HAVE_LIB_AO ao_shutdown(); #endif // HAVE_LIB_AO return rv; }