Revision f14985ba output-grapes.c

View differences:

output-grapes.c
29 29

  
30 30
void output_init(int bufsize, const char *config)
31 31
{
32
  out = out_stream_init(config, "media=av");
32
  char cfg[256];
33

  
34
  if (config && (strlen(config) > 4) && (memcmp(config, "udp:", 4) == 0)) {
35
    config += 4;
36
    sprintf(cfg, "dechunkiser=udp");
37
    sprintf(cfg + strlen(cfg), ",%s", config);
38
  } else {
39
    sprintf(cfg, "dechunkiser=avf,media=av");
40
  }
41
  out = out_stream_init(config, cfg);
33 42
  if (out == NULL) {
34 43
     fprintf(stderr, "Error: can't initialize output module\n");
35 44
     exit(1);

Also available in: Unified diff