Revision 59be6a47 src/dvbsched.cpp

View differences:

src/dvbsched.cpp
51 51
  std::ios::sync_with_stdio(false);
52 52

  
53 53
  std::string socketFile = DEFAULT_SOCKET_FILE;
54

  
54
  bool convertToPS = false;
55 55
  int priority = 10;
56 56

  
57 57
  while (true) {
58 58
    static struct option long_options[] = {
59 59
      {"priority", 1, 0, 'p'},
60 60
      {"socket", 1, 0, 's'},
61
      {"ps", 0, 0, 'P'},
61 62
      {0, 0, 0, 0}
62 63
    };
63 64
 
......
72 73
    case 's':
73 74
      socketFile = optarg;
74 75
      break;
75
      
76
    case 'P':
77
      convertToPS = true;
76 78
      break;
77 79
    default:
78 80
      usage(argv[0]);
......
104 106

  
105 107
  // Schedule
106 108

  
107
    int job = client.schedule(type, channel, scheduleTime, duration, priority, outputFile);
109
    int job = client.schedule(type, channel, convertToPS, scheduleTime, duration, priority, outputFile);
108 110

  
109 111
    if (job < 0) {
110 112
      std::cerr << "Failed to schedule job\n";
......
127 129
      while (std::cin >> answer) {
128 130
	switch (tolower(answer)) {
129 131
	case 'y':
130
	  std::cout << "Scheduled as job " << job << "\n";
132
	  std::cout << "Job Scheduled\n";
131 133
	  return 0;
132 134
	case 'n':
133 135
	  client.removeJob(job);
......
169 171
	    << "                         higher priorities may dislodge lower\n"
170 172
	    << "                         ones).\n"
171 173
	    << "  -s, --socket           Specify socket to connect to\n"
172
	    << "                         (default is " << DEFAULT_SOCKET_FILE << ")\n";
174
	    << "                         (default is " << DEFAULT_SOCKET_FILE << ")\n"
175
	    << "  -P, --ps               Convert stream to program stream\n";
173 176
}
174 177

  
175 178
// For parsetime

Also available in: Unified diff