[mythtv] [PATCH] Double FilePrefix in MainServer::LocalFilePath

Shane Shrybman shrybman at aei.ca
Tue Dec 7 19:57:08 UTC 2004


Hi,

I am seeing these messages in the backend log when trying to access preview images.

Could not open /home/mythtv/recordings/home/data/mythtv/recordings/1051_20041207110000_20041207120000.nuv.png.  4 retries remaining.
Could not open /home/mythtv/recordings/home/data/mythtv/recordings/1051_20041207110000_20041207120000.nuv.png.  3 retries remaining.
Could not open /home/mythtv/recordings/home/data/mythtv/recordings/1051_20041207110000_20041207120000.nuv.png.  2 retries remaining.
Could not open /home/mythtv/recordings/home/data/mythtv/recordings/1051_20041207110000_20041207120000.nuv.png.  1 retries remaining.
Could not open /home/mythtv/recordings/home/data/mythtv/recordings/1051_20041207110000_20041207120000.nuv.png.  0 retries remaining.

The correct path is '/home/data/mythtv/recordings/1051_20041207110000_20041207120000.nuv.png'. The system still seems to function OK.

Is this an appropriate fix for this problem? It does get rid of the messages in the log.

--- programs/mythbackend/mainserver.cpp.orig	2004-12-07 14:43:11.000000000 -0500
+++ programs/mythbackend/mainserver.cpp	2004-12-07 11:12:38.000000000 -0500
@@ -2807,7 +2807,7 @@
     else
     {
         lpath = lpath.section('/', -1);
-        lpath = gContext->GetFilePrefix() + url.path();
+        lpath = gContext->GetFilePrefix() + "/" + lpath;
     }
     return lpath;
 }

I wonder if this also allows the RecordingPrefix to actually be different on different backends.

Regards,

Shane



More information about the mythtv-dev mailing list