diff options
author | phintuka <phintuka> | 2006-12-19 16:33:52 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-12-19 16:33:52 +0000 |
commit | c264dd0734289f990365d60f8a47e94e2910f335 (patch) | |
tree | 546429d0b705b361d6669ccf268ddb61e73b37eb | |
parent | 1043c2885497c079b2732dc168219c684fadbecc (diff) | |
download | xineliboutput-c264dd0734289f990365d60f8a47e94e2910f335.tar.gz xineliboutput-c264dd0734289f990365d60f8a47e94e2910f335.tar.bz2 |
*** empty log message ***
-rw-r--r-- | frontend.c | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend.c,v 1.21 2006-12-19 08:41:48 phintuka Exp $ + * $Id: frontend.c,v 1.22 2006-12-19 16:33:52 phintuka Exp $ * */ @@ -704,20 +704,17 @@ int cXinelibThread::ConfigurePostprocessing(const char *deinterlace_method, int cXinelibThread::ConfigurePostprocessing(const char *name, bool on, const char *args) { char buf[1024]; - if(on) { + if(on) snprintf(buf, sizeof(buf), "POST %s On %s", (name&&*name)?name:"0", args?args:""); - buf[sizeof(buf)-1] = 0; - return Xine_Control(buf); - } else { + else // 0 - audio vis. // 1 - audio post // 2 - video post //return fe->post_close(fe, name, -1); snprintf(buf, sizeof(buf), "POST %s Off", (name&&*name)?name:"0"); - buf[sizeof(buf)-1] = 0; - return Xine_Control(buf); - } - return -1; + + buf[sizeof(buf)-1] = 0; + return Xine_Control(buf); } int cXinelibThread::ConfigureVideo(int hue, int saturation, |