summaryrefslogtreecommitdiff
path: root/dxr3interface.c
diff options
context:
space:
mode:
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) {