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

@@ -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;