~ubuntu-branches/ubuntu/natty/dradio/natty

« back to all changes in this revision

Viewing changes to src/dradio.c

  • Committer: Bazaar Package Importer
  • Author(s): Alejandro Garrido Mota
  • Date: 2009-10-04 11:14:51 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20091004111451-h3pgvbsueilk1jmw
Tags: upstream-3.5
ImportĀ upstreamĀ versionĀ 3.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
   memset(&main_win, 0, sizeof(MAIN_WIN));
69
69
   memset(&help_win, 0, sizeof(HELP_WIN));
70
70
 
 
71
   main_win.update_xterm_title = 1;
 
72
 
71
73
   signals_sigaction_all();
72
74
   /* mask out signals that are not to be received except within the pselect() call */
73
75
   signals_block_all(&orig_mask);
83
85
         version();
84
86
      if (strcmp(argv[i], "--nologo") == 0)
85
87
         logo_win_toggle(&main_win);
 
88
      if (strcmp(argv[i], "--notitle") == 0)
 
89
         main_win.update_xterm_title = 0;
86
90
   }
87
91
 
88
92
   setlocale(LC_ALL, "");
96
100
      exit(EXIT_FAILURE);
97
101
   }
98
102
 
 
103
   update_xterm_title(&main_win);
 
104
 
99
105
   mplayer_outlog = open_outlog();
100
106
   mplayer_errlog = open_errlog();
101
107
 
344
350
         else
345
351
            mplayer_loadfile(mplayer, (char *)cur_conf_item->src);
346
352
 
 
353
         update_xterm_title(w);
347
354
         break;
348
355
       case '<':          /* (podcast) previous in rss */
349
356
         if (w->cur_rss_item && w->cur_rss_item->prev)
653
660
{
654
661
   printf("%s %s is a Danmarks Radio netradio, podcast, and TV player.\n", "dradio", VERSION);
655
662
   printf("\n");
656
 
   printf("Usage: %s [--nologo] [MPLAYER_OPTIONS]...\n", "dradio");
 
663
   printf("Usage: %s [--nologo] [--notitle] [MPLAYER_OPTIONS]...\n", "dradio");
657
664
   printf("       %s --help, -h\n", "dradio");
658
665
   printf("       %s --version\n", "dradio");
659
666
   printf("\n");