diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-08-12 14:17:00 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-08-12 14:57:17 +0300 |
commit | 8d5912e60d3e2a12f9dae475af4472c2bc6490a6 (patch) | |
tree | 47466e3c072e9790f13e79d0aec3cf01640d9a87 /libvo | |
parent | 680703ecae05a00f68573f5d434d6056fa78a437 (diff) |
mpeg ao/vo drivers: Fix packet-writing helper function types
Add missing 'const' to callback functions passed to
send_mpeg_pes_packet() / send_mpeg_lpcm_packet().
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_ivtv.c | 2 | ||||
-rw-r--r-- | libvo/vo_mpegpes.c | 2 | ||||
-rw-r--r-- | libvo/vo_v4l2.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_ivtv.c b/libvo/vo_ivtv.c index 7faf8a1415..38b9ee7f4e 100644 --- a/libvo/vo_ivtv.c +++ b/libvo/vo_ivtv.c @@ -108,7 +108,7 @@ ivtv_reset (int blank_screen) } int -ivtv_write (unsigned char *data, int len) +ivtv_write (const unsigned char *data, int len) { if (ivtv_fd < 0) return 0; diff --git a/libvo/vo_mpegpes.c b/libvo/vo_mpegpes.c index a113fa32f2..ec67bceee5 100644 --- a/libvo/vo_mpegpes.c +++ b/libvo/vo_mpegpes.c @@ -172,7 +172,7 @@ static void draw_osd(void) } -static int my_write(unsigned char* data,int len){ +static int my_write(const unsigned char* data,int len){ int orig_len = len; #ifdef HAVE_DVB #define NFD 2 diff --git a/libvo/vo_v4l2.c b/libvo/vo_v4l2.c index fb4a666593..7157c68430 100644 --- a/libvo/vo_v4l2.c +++ b/libvo/vo_v4l2.c @@ -69,7 +69,7 @@ static const vo_info_t info = const LIBVO_EXTERN (v4l2) int -v4l2_write (unsigned char *data, int len) +v4l2_write (const unsigned char *data, int len) { if (v4l2_fd < 0) return 0; |