summaryrefslogtreecommitdiff
path: root/frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontend.c')
-rw-r--r--frontend.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/frontend.c b/frontend.c
index 633f4135..364c9601 100644
--- a/frontend.c
+++ b/frontend.c
@@ -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,