Mercurial > mplayer.hg
comparison libaf/af.c @ 7998:d48a06d07afb
Adding commandline options for filters and fixing stupid bug in cfg
author | anders |
---|---|
date | Thu, 31 Oct 2002 11:06:19 +0000 |
parents | ea0680d87f3f |
children | c0e556f9986b |
comparison
equal
deleted
inserted
replaced
7997:253162f19e43 | 7998:d48a06d07afb |
---|---|
61 contain the commandline parameters for the filter */ | 61 contain the commandline parameters for the filter */ |
62 af_instance_t* af_create(af_stream_t* s, char* name) | 62 af_instance_t* af_create(af_stream_t* s, char* name) |
63 { | 63 { |
64 char* cmdline = name; | 64 char* cmdline = name; |
65 char* delim = "="; | 65 char* delim = "="; |
66 | |
66 // Allocate space for the new filter and reset all pointers | 67 // Allocate space for the new filter and reset all pointers |
67 af_instance_t* new=malloc(sizeof(af_instance_t)); | 68 af_instance_t* new=malloc(sizeof(af_instance_t)); |
68 if(!new){ | 69 if(!new){ |
69 mp_msg(MSGT_AFILTER,MSGL_ERR,"Could not allocate memory\n"); | 70 mp_msg(MSGT_AFILTER,MSGL_ERR,"Could not allocate memory\n"); |
70 return NULL; | 71 return NULL; |