diff --git a/generic-pc/dmx.cpp b/generic-pc/dmx.cpp index 6609693..1af785f 100644 --- a/generic-pc/dmx.cpp +++ b/generic-pc/dmx.cpp @@ -71,7 +71,7 @@ static const char *devname[NUM_DEMUXDEV] = { #define NUM_DEMUX 1 static int dmx_source[NUM_DEMUX] = { 0 }; -static bool init[NUM_DEMUXDEV] = { false }; +// static bool init[NUM_DEMUXDEV] = { false }; /* uuuugly */ static int dmx_tp_count = 0; diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index 3b1f244..b1ff4ed 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -345,6 +345,10 @@ retry: } lt_info("#%d: %s cannot open %s: %m, retries %d\n", devnum, __func__, VDEV[devnum], n); } + if ( fd >= 0 && (ioctl(fd,VIDEO_SET_BLANK, false) < 0)){ + perror("VIDEO SET BLANK: "); + } + playstate = VIDEO_STOPPED; } @@ -353,8 +357,12 @@ void cVideo::closeDevice(void) lt_debug("%s\n", __func__); /* looks like sometimes close is unhappy about non-empty buffers */ // Start(); - if (fd >= 0) + if (fd >= 0){ + if ((ioctl(fd,VIDEO_SET_BLANK, true) < 0)){ + perror("VIDEO SET BLANK: "); + } close(fd); + } fd = -1; playstate = VIDEO_STOPPED; } diff --git a/libarmbox/video_lib.h b/libarmbox/video_lib.h index 1631cb4..7a914fe 100644 --- a/libarmbox/video_lib.h +++ b/libarmbox/video_lib.h @@ -73,8 +73,12 @@ typedef enum { } DISPLAY_AR; typedef enum { - DISPLAY_AR_MODE_PANSCAN = 0, - DISPLAY_AR_MODE_LETTERBOX, + /* FIX for HD51 mix-up of letterbox / panscan + Standard is 1. PANSCAN 2. LETTERBOX + If next drivers are correct please revert + this and pzapit.cpp */ + DISPLAY_AR_MODE_LETTERBOX = 0, + DISPLAY_AR_MODE_PANSCAN, DISPLAY_AR_MODE_NONE, DISPLAY_AR_MODE_PANSCAN2 } DISPLAY_AR_MODE;