summaryrefslogtreecommitdiff
path: root/plugins/provider
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2012-10-22 04:32:50 +0200
committermethodus <methodus@web.de>2012-10-22 04:32:50 +0200
commitf64cb39000006328cec4204edbce9a89cae3e087 (patch)
tree63c93a1c79f31d14f2531ace6449641adc69c5f9 /plugins/provider
parentb419a39697be8257dfbdf26116ea022adf0da2e8 (diff)
downloadvdr-plugin-upnp-f64cb39000006328cec4204edbce9a89cae3e087.tar.gz
vdr-plugin-upnp-f64cb39000006328cec4204edbce9a89cae3e087.tar.bz2
Seeking finally works even on TV sets.
Diffstat (limited to 'plugins/provider')
-rw-r--r--plugins/provider/recProvider/recProvider.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/provider/recProvider/recProvider.cpp b/plugins/provider/recProvider/recProvider.cpp
index f2e0fa0..fea182a 100644
--- a/plugins/provider/recProvider/recProvider.cpp
+++ b/plugins/provider/recProvider/recProvider.cpp
@@ -52,8 +52,10 @@ private:
vector<size_t> offsets;
void CloseFile(){
- fclose(fileFD);
- fileFD = NULL;
+ if(fileFD){
+ fclose(fileFD);
+ fileFD = NULL;
+ }
}
bool OpenFile(int i = 1){