void DVBSubtitles::unPause()
{
- Log::getInstance()->log("DVBSubs", Log::DEBUG, "subs pause");
+ Log::getInstance()->log("DVBSubs", Log::DEBUG, "subs unpause");
input_mutex.lock();
if (!running)
// just store the packet and allow next signal to start things off
Log::getInstance()->log("DVBSubs", Log::DEBUG, "signalRecalcWLTO but Video PTS == 0");
}
- else
+ else if (worklist.size()) // It is possible to be called to recalc when there are no packets
{
worklistTimeoutPointActive = true;
Log::getInstance()->log("DVBSubs", Log::DEBUG, "Calc: Num packets available: %i", worklist.size());
if (diff < 60 * 1000)
{
worklistTimeoutPoint = std::chrono::system_clock::now() + std::chrono::milliseconds(diff);
+ Log::getInstance()->log("DVBSubs", Log::DEBUG, "Calc'd new worklistTimeoutPoint");
}
else
{
// FIXME check if this still works
worklistTimeoutPoint = std::chrono::system_clock::now();
+ Log::getInstance()->log("DVBSubs", Log::DEBUG, "Problem packet");
}
-
- Log::getInstance()->log("DVBSubs", Log::DEBUG, "Calc'd new worklistTimeoutPoint");
}
}
else if (waitExpireST) // do real work - subtitletimeout
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "log.h"
+#include <sys/types.h>
+#include <unistd.h>
+#include <sys/syscall.h>
#include "vdr.h"
+
+#include "log.h"
+
+
#ifdef __ANDROID__
#include <android/log.h>
#endif
if (level == DEBUG) strcpy(levelString, "[debug] ");
#ifndef WIN32
- spaceLeft -= SNPRINTF(&buffer[150-spaceLeft], spaceLeft, "%s %lu %s - ", levelString, pthread_self(), fromModule);
+ spaceLeft -= SNPRINTF(&buffer[150-spaceLeft], spaceLeft, "%s %lu %li %s - ", levelString, pthread_self(), syscall(SYS_gettid), fromModule);
#else
spaceLeft -= SNPRINTF(&buffer[150-spaceLeft], spaceLeft, "%s %s - ", levelString, fromModule);
#endif