summaryrefslogtreecommitdiff
path: root/dxr3interface.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-02-02 15:26:59 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-02-02 15:26:59 +0100
commit009b7d2a7e16c0485d655f28a8a3594f2838a02f (patch)
treeb618080c194e1b6084994eb3efbb58600a2d3e01 /dxr3interface.c
parentd1ae16e9c46724dfe3be488a81e5cff3084ded99 (diff)
downloadvdr-plugin-dxr3-009b7d2a7e16c0485d655f28a8a3594f2838a02f.tar.gz
vdr-plugin-dxr3-009b7d2a7e16c0485d655f28a8a3594f2838a02f.tar.bz2
remove old buffer and a/v sync parts
Diffstat (limited to 'dxr3interface.c')
-rw-r--r--dxr3interface.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/dxr3interface.c b/dxr3interface.c
index 0625029..1c1a392 100644
--- a/dxr3interface.c
+++ b/dxr3interface.c
@@ -22,7 +22,6 @@
*/
#include "dxr3interface.h"
-#include "dxr3syncbuffer.h"
#include "dxr3osd.h"
#include "dxr3pesframe.h"
@@ -31,6 +30,8 @@ static const char *DEV_DXR3_VIDEO = "_mv";
static const char *DEV_DXR3_OSS = "_ma";
static const char *DEV_DXR3_CONT = "";
+static const int UNKNOWN_ASPECT_RATIO = 0xdeadbeef;
+
// ==================================
//! constructor
cDxr3Interface::cDxr3Interface() :
@@ -274,34 +275,6 @@ void cDxr3Interface::Pause()
}
// ==================================
-void cDxr3Interface::PlayVideoFrame(cFixedLengthFrame* pFrame)
-{
- if (!m_VideoActive) {
- return;
- }
-
- int written = 0;
- int count = 0;
-
- Lock();
-
- while (written < pFrame->length() && count >= 0) {
- if ((count = write(m_fdVideo, pFrame->GetData() + written, pFrame->length() - written)) == -1) {
- // an error occured
- Resuscitation();
- }
- written += count;
- }
-
- Unlock();
-
- SetAspectRatio(pFrame->aspectratio());
- uint32_t pts = pFrame->pts();
- if (pts > 0)
- m_lastSeenPts = pts;
-}
-
-// ==================================
void cDxr3Interface::PlayVideoFrame(cDxr3PesFrame *frame)
{
if (!m_VideoActive) {