zapit: initialize videodecoder even in failure case

this allows to tell the user that something bad happened
before crashing


Origin commit data
------------------
Commit: 451ccaae13
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-05-11 (Sat, 11 May 2013)
This commit is contained in:
Stefan Seyfried
2013-05-11 17:46:04 +02:00
parent 0475a3731d
commit 5e1f97e28f

View File

@@ -4,7 +4,7 @@
* zapit - d-box2 linux project
*
* (C) 2001, 2002 by Philipp Leusmann <faralla@berlios.de>
* (C) 2007-2012 Stefan Seyfried
* (C) 2007-2013 Stefan Seyfried
* Copyright (C) 2011 CoolStream International Ltd
*
* This program is free software; you can redistribute it and/or modify
@@ -2266,8 +2266,10 @@ bool CZapit::Start(Z_start_arg *ZapStart_arg)
CFEManager::getInstance()->Init();
live_fe = CFEManager::getInstance()->getFE(0);
#if 0
if (live_fe == NULL) /* no frontend found? */
return false;
#endif
/* load configuration or set defaults if no configuration file exists */
video_mode = ZapStart_arg->video_mode;
@@ -2327,6 +2329,8 @@ bool CZapit::Start(Z_start_arg *ZapStart_arg)
#endif
ca = cCA::GetInstance();
if (live_fe == NULL) /* no frontend found? */
return false;
//LoadSettings();
//LoadAudioMap();