summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2012-03-13 22:49:14 (GMT)
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2012-03-13 22:49:14 (GMT)
commitf2d099676a25f6e238c3ad75f8f19b667f9627fb (patch)
tree29bdc131536e3d65f7025c0a5f22e7b7bbc34c6c
parentd2a85a69f4d343774aaa052316b02e7787168eeb (diff)
downloadvdr-plugin-live-f2d099676a25f6e238c3ad75f8f19b667f9627fb.tar.gz
vdr-plugin-live-f2d099676a25f6e238c3ad75f8f19b667f9627fb.tar.bz2
Provide recording->IsPesRecording() to cFileName instances.
This fixes bug #885 (http://projects.vdr-developer.org/issues/885).
-rw-r--r--pages/recstream.ecpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/pages/recstream.ecpp b/pages/recstream.ecpp
index 7033518..f45d1c4 100644
--- a/pages/recstream.ecpp
+++ b/pages/recstream.ecpp
@@ -15,7 +15,11 @@ using namespace vdrlive;
off_t RecSize(cRecording const * recording)
{
+#if VDRVERSNUM < 10704
cFileName recFile(recording->FileName(), false, false);
+#else
+ cFileName recFile(recording->FileName(), false, false, recording->IsPesRecording());
+#endif
off_t recSize = 0;
for (cUnbufferedFile *recData = recFile.Open(); recData; recData = recFile.NextFile()) {
struct stat buf;
@@ -48,7 +52,11 @@ if (recording) {
reply.setContentLengthHeader(RecSize(recording));
reply.setDirectMode();
+#if VDRVERSNUM < 10704
cFileName recFile(recording->FileName(), false, false);
+#else
+ cFileName recFile(recording->FileName(), false, false, recording->IsPesRecording());
+#endif
// dsyslog("LIVE: start send video data.");
for (cUnbufferedFile *recData = recFile.Open(); recData; recData = recFile.NextFile()) {
char buffer[KILOBYTE(16)];