projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
226fbe8
)
only write .cuts file when .ts file is still accessible
author
Felix Domke
<tmbinc@elitedvb.net>
Sat, 7 Oct 2006 16:31:52 +0000
(16:31 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sat, 7 Oct 2006 16:31:52 +0000
(16:31 +0000)
lib/service/servicedvb.cpp
patch
|
blob
|
history
diff --git
a/lib/service/servicedvb.cpp
b/lib/service/servicedvb.cpp
index
99474a8
..
75b5521
100644
(file)
--- a/
lib/service/servicedvb.cpp
+++ b/
lib/service/servicedvb.cpp
@@
-21,6
+21,7
@@
#include <lib/gui/esubtitle.h>
#include <sys/vfs.h>
#include <lib/gui/esubtitle.h>
#include <sys/vfs.h>
+#include <sys/stat.h>
#include <byteswap.h>
#include <netinet/in.h>
#include <byteswap.h>
#include <netinet/in.h>
@@
-826,7
+827,12
@@
RESULT eDVBServicePlay::stop()
m_service_handler.free();
if (m_is_pvr && m_cuesheet_changed)
m_service_handler.free();
if (m_is_pvr && m_cuesheet_changed)
- saveCuesheet();
+ {
+ struct stat s;
+ /* save cuesheet only when main file is accessible. */
+ if (!::stat(m_reference.path.c_str(), &s))
+ saveCuesheet();
+ }
return 0;
}
return 0;
}