From e1d8609143bc661b9ad84c91abb815ca0e9f9e36 Mon Sep 17 00:00:00 2001 From: Johns Date: Thu, 8 Dec 2011 20:50:32 +0100 Subject: Pass audio PTS to codec. Correct PTS extraction and pass it to codec module. C++ destructor calls C function. Fix spuDecoder is used uninitialized. --- softhddevice.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'softhddevice.cpp') diff --git a/softhddevice.cpp b/softhddevice.cpp index 532b5dd..9e011ed 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -219,7 +219,7 @@ class cSoftOsdProvider:public cOsdProvider cSoftOsdProvider(void); }; -cOsd *cSoftOsdProvider::Osd; +cOsd *cSoftOsdProvider::Osd; ///< single osd /** ** Create a new OSD. @@ -330,6 +330,8 @@ class cSoftHdDevice:public cDevice cSoftHdDevice::cSoftHdDevice(void) { dsyslog("[softhddev]%s\n", __FUNCTION__); + + spuDecoder = NULL; } cSoftHdDevice::~cSoftHdDevice(void) @@ -577,6 +579,8 @@ cPluginSoftHdDevice::~cPluginSoftHdDevice(void) { // Clean up after yourself! dsyslog("[softhddev]%s:\n", __FUNCTION__); + + ::SoftHdDeviceExit(); } const char *cPluginSoftHdDevice::Version(void) -- cgit v1.2.3