summaryrefslogtreecommitdiff
path: root/src/input/input_http.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-08-21 00:37:26 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-08-21 00:37:26 +0000
commitfa630d674955c0a6ea29d1427081e200223b85cc (patch)
tree3a696b538dfcfa9e8ed81244f2f7549380df97ac /src/input/input_http.c
parent44d393d0d8b4ff75e76e21860386ce5c145d304a (diff)
downloadxine-lib-fa630d674955c0a6ea29d1427081e200223b85cc.tar.gz
xine-lib-fa630d674955c0a6ea29d1427081e200223b85cc.tar.bz2
RIP Input Plugin
CVS patchset: 5300 CVS date: 2003/08/21 00:37:26
Diffstat (limited to 'src/input/input_http.c')
-rw-r--r--src/input/input_http.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index 7ac5e8b59..ea87ccbe7 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -19,7 +19,7 @@
*
* input plugin for http network streams
*
- * $Id: input_http.c,v 1.62 2003/06/19 14:46:03 guenter Exp $
+ * $Id: input_http.c,v 1.63 2003/08/21 00:37:29 miguelfreitas Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -541,8 +541,15 @@ static off_t http_plugin_get_length (input_plugin_t *this_gen) {
}
static uint32_t http_plugin_get_capabilities (input_plugin_t *this_gen) {
+ http_input_plugin_t *this = (http_input_plugin_t *) this_gen;
+ uint32_t caps = INPUT_CAP_PREVIEW;
+
+ /* Nullsoft asked to not allow saving streaming nsv files */
+ if (this->filename &&
+ !strncmp(this->filename + strlen(this->filename) - 4, ".nsv", 4))
+ caps |= INPUT_CAP_RIP_FORBIDDEN;
- return INPUT_CAP_PREVIEW;
+ return caps;
}
static uint32_t http_plugin_get_blocksize (input_plugin_t *this_gen) {