summaryrefslogtreecommitdiff
path: root/xine_input_vdr.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-06-09 15:24:44 +0000
committerphintuka <phintuka>2007-06-09 15:24:44 +0000
commitbb347e3916fbdb389cf98a4d410a0e2b84d73e9f (patch)
treeb01d63d83cb4defaeec62b3e9b6b94de6f3515c2 /xine_input_vdr.c
parent4d77c92caecbf856be50a94d82c99964b0df583f (diff)
downloadxineliboutput-bb347e3916fbdb389cf98a4d410a0e2b84d73e9f.tar.gz
xineliboutput-bb347e3916fbdb389cf98a4d410a0e2b84d73e9f.tar.bz2
Signature of input plugin read() function is different in xine-lib 1.2
(char *buf --> void *buf)
Diffstat (limited to 'xine_input_vdr.c')
-rw-r--r--xine_input_vdr.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c
index 8874879a..42adaee0 100644
--- a/xine_input_vdr.c
+++ b/xine_input_vdr.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_input_vdr.c,v 1.84 2007-05-30 08:13:24 phintuka Exp $
+ * $Id: xine_input_vdr.c,v 1.85 2007-06-09 15:24:44 phintuka Exp $
*
*/
@@ -1575,7 +1575,11 @@ static char* fifo_get_mrl (input_plugin_t *this_gen)
#endif
{ return "xvdr:slave:"; }
+#if XINE_VERSION_CODE < 10200
static off_t fifo_read (input_plugin_t *this_gen, char *buf, off_t len)
+#else
+static off_t fifo_read (input_plugin_t *this_gen, void *buf, off_t len)
+#endif
{
int got = 0;
LOGERR("fifo_input_plugin::fifo_read() not implemented !");
@@ -4681,12 +4685,16 @@ static void track_audio_stream_change(vdr_input_plugin_t *this, buf_element_t *b
}
}
-static off_t vdr_plugin_read (input_plugin_t *this_gen,
- char *buf, off_t len)
+#if XINE_VERSION_CODE < 10200
+static off_t vdr_plugin_read (input_plugin_t *this_gen, char *buf_gen, off_t len)
+#else
+static off_t vdr_plugin_read (input_plugin_t *this_gen, void *buf_gen, off_t len)
+#endif
{
/* from xine_input_dvd.c: */
/* FIXME: Tricking the demux_mpeg_block plugin */
if(len > 3) {
+ uint8_t *buf = (uint8_t*)buf_gen;
buf[0] = 0;
buf[1] = 0;
buf[2] = 0x01;