diff options
author | methodus <methodus@web.de> | 2012-10-22 04:32:50 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-22 04:32:50 +0200 |
commit | f64cb39000006328cec4204edbce9a89cae3e087 (patch) | |
tree | 63c93a1c79f31d14f2531ace6449641adc69c5f9 /plugins/provider | |
parent | b419a39697be8257dfbdf26116ea022adf0da2e8 (diff) | |
download | vdr-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.cpp | 6 |
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){ |