libtriple: add debug messages to cDemux and cVideo functions

This commit is contained in:
Stefan Seyfried
2010-08-28 14:03:58 +02:00
parent 4e01efc452
commit 06bced653a
2 changed files with 3 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBuffe
void cDemux::Close(void) void cDemux::Close(void)
{ {
lt_debug("cDemux::%s #%d, fd = %d\n", __FUNCTION__, num, fd);
if (fd < 0) if (fd < 0)
{ {
fprintf(stderr, "cDemux::%s #%d: not open!\n", __FUNCTION__, num); fprintf(stderr, "cDemux::%s #%d: not open!\n", __FUNCTION__, num);

View File

@@ -251,6 +251,7 @@ int cVideo::setCroppingMode(vidDispMode_t format)
int cVideo::Start(void * /*PcrChannel*/, unsigned short /*PcrPid*/, unsigned short /*VideoPid*/, void * /*hChannel*/) 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) if (playstate == VIDEO_PLAYING)
return 0; return 0;
if (playstate == VIDEO_FREEZED) /* in theory better, but not in practice :-) */ 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) int cVideo::Stop(bool blank)
{ {
//fprintf(stderr, "cVideo::Stop %d\n", blank); lt_debug("cVideo::Stop %d\n", blank);
if (blank) if (blank)
{ {
playstate = VIDEO_STOPPED; playstate = VIDEO_STOPPED;