diff options
author | phintuka <phintuka> | 2006-10-13 12:50:23 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-10-13 12:50:23 +0000 |
commit | d1002a5c1cb9f71a7bd300100858ce6094e7eaeb (patch) | |
tree | a3fa9db6fadc437c21ec5cdbae3daf41750fb6a3 | |
parent | e570b59f853a178e6fdc39acaa667725e7ae5c4b (diff) | |
download | xineliboutput-d1002a5c1cb9f71a7bd300100858ce6094e7eaeb.tar.gz xineliboutput-d1002a5c1cb9f71a7bd300100858ce6094e7eaeb.tar.bz2 |
Check return value of cRemote::CallPlugin()
-rw-r--r-- | setup_menu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/setup_menu.c b/setup_menu.c index 73007fba..efd328c7 100644 --- a/setup_menu.c +++ b/setup_menu.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: setup_menu.c,v 1.13 2006-09-20 09:06:13 phintuka Exp $ + * $Id: setup_menu.c,v 1.14 2006-10-13 12:50:23 phintuka Exp $ * */ @@ -1488,16 +1488,16 @@ eOSState cMenuTestImages::ProcessKey(eKeys Key) switch (state) { case osUser1: - g_PendingMenuAction = new cTestGrayscale(); - cRemote::CallPlugin("xineliboutput"); + if(cRemote::CallPlugin("xineliboutput")) + g_PendingMenuAction = new cTestGrayscale(); return osEnd; case osUser2: - g_PendingMenuAction = new cTestBitmap(1); - cRemote::CallPlugin("xineliboutput"); + if(cRemote::CallPlugin("xineliboutput")) + g_PendingMenuAction = new cTestBitmap(1); return osEnd; case osUser3: - g_PendingMenuAction = new cTestBitmap(4); - cRemote::CallPlugin("xineliboutput"); + if(cRemote::CallPlugin("xineliboutput")) + g_PendingMenuAction = new cTestBitmap(4); return osEnd; default: ; } |