From 06bced653a7e7bc564bc9bb26a3966eecc309a5f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 28 Aug 2010 14:03:58 +0200 Subject: [PATCH] libtriple: add debug messages to cDemux and cVideo functions --- libtriple/dmx_td.cpp | 1 + libtriple/video_td.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libtriple/dmx_td.cpp b/libtriple/dmx_td.cpp index fe9566b..5e6474e 100644 --- a/libtriple/dmx_td.cpp +++ b/libtriple/dmx_td.cpp @@ -95,6 +95,7 @@ bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBuffe void cDemux::Close(void) { + lt_debug("cDemux::%s #%d, fd = %d\n", __FUNCTION__, num, fd); if (fd < 0) { fprintf(stderr, "cDemux::%s #%d: not open!\n", __FUNCTION__, num); diff --git a/libtriple/video_td.cpp b/libtriple/video_td.cpp index 718e696..1e2b30b 100644 --- a/libtriple/video_td.cpp +++ b/libtriple/video_td.cpp @@ -251,6 +251,7 @@ int cVideo::setCroppingMode(vidDispMode_t format) int cVideo::Start(void * /*PcrChannel*/, unsigned short /*PcrPid*/, unsigned short /*VideoPid*/, void * /*hChannel*/) { + lt_debug("cVideo::Start playstate = %d\n", playstate); if (playstate == VIDEO_PLAYING) return 0; if (playstate == VIDEO_FREEZED) /* in theory better, but not in practice :-) */ @@ -262,7 +263,7 @@ int cVideo::Start(void * /*PcrChannel*/, unsigned short /*PcrPid*/, unsigned sho int cVideo::Stop(bool blank) { - //fprintf(stderr, "cVideo::Stop %d\n", blank); + lt_debug("cVideo::Stop %d\n", blank); if (blank) { playstate = VIDEO_STOPPED;