mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
driver/record.cpp: try to flush hdd buffers, if hdd is in standby at record start
Origin commit data
------------------
Commit: 3d3e169f1e
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-02-05 (Wed, 05 Feb 2014)
This commit is contained in:
@@ -152,6 +152,7 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel)
|
|||||||
hintBox.paint();
|
hintBox.paint();
|
||||||
|
|
||||||
tsfile = std::string(filename) + ".ts";
|
tsfile = std::string(filename) + ".ts";
|
||||||
|
bool standby = hdd_get_standby(Directory.c_str());
|
||||||
|
|
||||||
printf("%s: file %s vpid %x apid %x\n", __FUNCTION__, tsfile.c_str(), allpids.PIDs.vpid, apids[0]);
|
printf("%s: file %s vpid %x apid %x\n", __FUNCTION__, tsfile.c_str(), allpids.PIDs.vpid, apids[0]);
|
||||||
|
|
||||||
@@ -202,6 +203,8 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel)
|
|||||||
|
|
||||||
}
|
}
|
||||||
psi.genpsi(fd);
|
psi.genpsi(fd);
|
||||||
|
if (standby)
|
||||||
|
hdd_flush(tsfile.c_str());
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if ((StreamPmtPid) && (allpids.PIDs.pmtpid != 0) && (numpids < REC_MAX_APIDS))
|
if ((StreamPmtPid) && (allpids.PIDs.pmtpid != 0) && (numpids < REC_MAX_APIDS))
|
||||||
|
Reference in New Issue
Block a user