From 8ac02955886a9cae7e7117cd98456d2695989b9e Mon Sep 17 00:00:00 2001 From: satbaby Date: Sat, 23 Jul 2011 14:06:52 +0000 Subject: [PATCH] Don t touch the tuxtxt_cache structure outside tuxtx & Stop the cache thread since it will be re-initialise. patch by Rattle. THX git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1594 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- lib/libtuxtxt/libtuxtxt.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/libtuxtxt/libtuxtxt.cpp b/lib/libtuxtxt/libtuxtxt.cpp index fac6a0152..06e97de95 100644 --- a/lib/libtuxtxt/libtuxtxt.cpp +++ b/lib/libtuxtxt/libtuxtxt.cpp @@ -31,11 +31,8 @@ int tuxtxt_init() tuxtxt_initialized=1; /* init data */ - memset(&tuxtxt_cache.astCachetable, 0, sizeof(tuxtxt_cache.astCachetable)); - memset(&tuxtxt_cache.astP29, 0, sizeof(tuxtxt_cache.astP29)); - + tuxtxt_stop(); tuxtxt_clear_cache(); - tuxtxt_cache.receiving = 0; tuxtxt_cache.thread_starting = 0; tuxtxt_cache.vtxtpid = -1; tuxtxt_cache.thread_id = 0;