From d1002a5c1cb9f71a7bd300100858ce6094e7eaeb Mon Sep 17 00:00:00 2001 From: phintuka Date: Fri, 13 Oct 2006 12:50:23 +0000 Subject: Check return value of cRemote::CallPlugin() --- setup_menu.c | 14 +++++++------- 1 file 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: ; } -- cgit v1.2.3