mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libtriple: add debug messages to cDemux and cVideo functions
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user