summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-11-16 00:05:21 +0000
committerphintuka <phintuka>2008-11-16 00:05:21 +0000
commit061cc0fd52614299da8aa152568b118024f1184a (patch)
tree93362c5f5f58a001cc26d7f06eadf9cc5efe6dac
parenta492d521dab3b033b27e10560ea9b4c266844252 (diff)
downloadxineliboutput-061cc0fd52614299da8aa152568b118024f1184a.tar.gz
xineliboutput-061cc0fd52614299da8aa152568b118024f1184a.tar.bz2
Check if executing aspect ratio controller script failed
-rw-r--r--xine_frontend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xine_frontend.c b/xine_frontend.c
index 56d171aa..06e09d91 100644
--- a/xine_frontend.c
+++ b/xine_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend.c,v 1.87 2008-11-14 23:31:37 phintuka Exp $
+ * $Id: xine_frontend.c,v 1.88 2008-11-16 00:05:21 phintuka Exp $
*
*/
@@ -334,7 +334,8 @@ static void fe_frame_output_cb (void *data,
this->aspect_controller, (int)(video_aspect * 10000.0))
< sizeof(cmd)) {
LOGDBG("Aspect ratio changed, executing %s", cmd);
- system(cmd);
+ if(system(cmd) == -1)
+ LOGERR("Executing /bin/sh -c %s failed");
this->video_aspect = video_aspect;
}
}