summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/Makefile.am1
-rw-r--r--src/input/input_pvr.c7
-rw-r--r--src/input/vcd/Makefile.am1
3 files changed, 8 insertions, 1 deletions
diff --git a/src/input/Makefile.am b/src/input/Makefile.am
index 1fc5d1a39..ddeb61a06 100644
--- a/src/input/Makefile.am
+++ b/src/input/Makefile.am
@@ -1,3 +1,4 @@
+include $(top_builddir)/misc/Makefile.plugins
include $(top_srcdir)/misc/Makefile.common
# REVISIT: This second line here bothers me more than just a little bit
diff --git a/src/input/input_pvr.c b/src/input/input_pvr.c
index 0f2bee57e..feacc0edf 100644
--- a/src/input/input_pvr.c
+++ b/src/input/input_pvr.c
@@ -1208,6 +1208,12 @@ static buf_element_t *pvr_plugin_read_block (input_plugin_t *this_gen, fifo_buff
return NULL;
}
+ buf = fifo->buffer_pool_alloc (fifo);
+ if (todo < 0 || todo > buf->size) {
+ buf->free_buffer(buf);
+ return NULL;
+ }
+
if( this->scr_tunning == -2 )
speed = this->speed_before_pause;
@@ -1231,7 +1237,6 @@ static buf_element_t *pvr_plugin_read_block (input_plugin_t *this_gen, fifo_buff
pvr_event_handler(this);
- buf = fifo->buffer_pool_alloc (fifo);
buf->content = buf->mem;
pthread_mutex_lock(&this->lock);
diff --git a/src/input/vcd/Makefile.am b/src/input/vcd/Makefile.am
index 2b47415fd..ca2c624a2 100644
--- a/src/input/vcd/Makefile.am
+++ b/src/input/vcd/Makefile.am
@@ -1,3 +1,4 @@
+include $(top_builddir)/misc/Makefile.plugins
include $(top_srcdir)/misc/Makefile.common
AM_CFLAGS = $(DEFAULT_OCFLAGS) $(VISIBILITY_FLAG)