diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-07-17 12:32:44 +0200 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-07-17 12:32:44 +0200 |
| commit | a23ed7f5a165951c6042411b0d0cabaab010f561 (patch) | |
| tree | 762ade291d561f82d360af99ca6fa3b4068ca428 /lib/python/Plugins/Extensions/DVDPlayer | |
| parent | 37bac1d63115720ca83f064e0e4f5426271fc364 (diff) | |
| download | enigma2-a23ed7f5a165951c6042411b0d0cabaab010f561.tar.gz enigma2-a23ed7f5a165951c6042411b0d0cabaab010f561.zip | |
we need policy2 in libdreamdvd for 16:10 support
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDPlayer')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp b/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp index 917d4cc5..94f2ee38 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp +++ b/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp @@ -92,8 +92,9 @@ eServiceDVD::eServiceDVD(eServiceReference ref): m_current_trick(0), m_pump(eApp, 1) { - int aspect = DDVD_16_9; + int aspect = DDVD_16_9; int policy = DDVD_PAN_SCAN; + int policy2 = DDVD_PAN_SCAN; char tmp[255]; ssize_t rd; @@ -130,7 +131,22 @@ eServiceDVD::eServiceDVD(eServiceReference ref): close(fd); } +#ifdef DDVD_SUPPORTS_16_10_SCALING + fd = open("/proc/stb/video/policy2", O_RDONLY); + if (fd > -1) + { + rd = read(fd, tmp, 255); + if (rd > 6 && !strncmp(tmp, "bestfit", 7)) + policy2 = DDVD_JUSTSCALE; + else if (rd > 8 && !strncmp(tmp, "letterbox", 9)) + policy2 = DDVD_LETTERBOX; + close(fd); + } + ddvd_set_video_ex(m_ddvdconfig, aspect, policy, policy2, DDVD_PAL /*unused*/); +#else ddvd_set_video(m_ddvdconfig, aspect, policy, DDVD_PAL /*unused*/); +#warning please update libdreamdvd for 16:10 scaling support! +#endif CONNECT(m_sn->activated, eServiceDVD::gotMessage); CONNECT(m_pump.recv_msg, eServiceDVD::gotThreadMessage); |
