mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libtriple: add video parameter watchdog
Add the video parameter watchdog to the (already existing) input
thread, so we can remove it from zapit.
Unfortunately, we need an ugly hack in cDemux for making sure we
do not crash on exit... :-(
Origin commit data
------------------
Branch: master
Commit: e83b77d0e5
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-01-14 (Sat, 14 Jan 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -39,6 +39,10 @@
|
||||
#include <directfb.h>
|
||||
#include "lt_dfbinput.h"
|
||||
|
||||
/* needed for videodecoder watchdog */
|
||||
#include "video_td.h"
|
||||
extern cVideo *videoDecoder;
|
||||
|
||||
/* same defines as in neutrino's rcinput.h */
|
||||
#define KEY_TTTV KEY_FN_1
|
||||
#define KEY_TTZOOM KEY_FN_2
|
||||
@@ -245,7 +249,12 @@ static void *input_thread(void *data)
|
||||
thread_running = 1;
|
||||
while (thread_running)
|
||||
{
|
||||
if (events->WaitForEventWithTimeout(events, 1, 0) == DFB_TIMEOUT)
|
||||
/* check every 250ms (if a key is pressed on remote, we might
|
||||
* even check earlier, but it does not really hurt... */
|
||||
if (videoDecoder)
|
||||
videoDecoder->VideoParamWatchdog();
|
||||
|
||||
if (events->WaitForEventWithTimeout(events, 0, 250) == DFB_TIMEOUT)
|
||||
continue;
|
||||
DFBInputEvent e;
|
||||
while (events->GetEvent(events, DFB_EVENT(&e)) == DFB_OK)
|
||||
|
Reference in New Issue
Block a user