summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-03-12 23:04:41 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-03-12 23:04:41 +0000
commitda77d3f784f5f359cfd15c40a08deac370f93a30 (patch)
tree5084e8f71a96434769cabdfccbb52659c86c55d8 /src
parent97b8a8214bb97b601d64ff2892bfeb7f0648e808 (diff)
downloadxine-lib-da77d3f784f5f359cfd15c40a08deac370f93a30.tar.gz
xine-lib-da77d3f784f5f359cfd15c40a08deac370f93a30.tar.bz2
max_pages should be > 0
CVS patchset: 4399 CVS date: 2003/03/12 23:04:41
Diffstat (limited to 'src')
-rw-r--r--src/input/input_pvr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input/input_pvr.c b/src/input/input_pvr.c
index a177ad4f2..6439820eb 100644
--- a/src/input/input_pvr.c
+++ b/src/input/input_pvr.c
@@ -37,7 +37,7 @@
* usage:
* xine pvr:<prefix_to_tmp_files>\!<prefix_to_saved_files>\!<max_page_age>
*
- * $Id: input_pvr.c,v 1.7 2003/03/10 23:21:27 miguelfreitas Exp $
+ * $Id: input_pvr.c,v 1.8 2003/03/12 23:04:41 miguelfreitas Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -1069,7 +1069,8 @@ static input_plugin_t *open_plugin (input_class_t *cls_gen, xine_stream_t *strea
aux = strchr(this->save_prefix, '!');
if( aux ) {
aux[0] = '\0';
- this->max_page_age = atoi(aux+1);
+ if( atoi(aux+1) )
+ this->max_page_age = atoi(aux+1);
}
} else {
this->save_prefix=strdup(this->tmp_prefix);