1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

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().
This commit is contained in:
Uoti Urpala 2008-08-12 14:17:00 +03:00
parent 680703ecae
commit 8d5912e60d
6 changed files with 6 additions and 6 deletions

View File

@ -147,7 +147,7 @@ get_space (void)
static int static int
play (void *data, int len, int flags) play (void *data, int len, int flags)
{ {
extern int ivtv_write (unsigned char *data, int len); extern int ivtv_write (const unsigned char *data, int len);
if (ao_data.format != AF_FORMAT_MPEG2) if (ao_data.format != AF_FORMAT_MPEG2)
return 0; return 0;

View File

@ -188,7 +188,7 @@ static int preinit(const char *arg)
return vo_mpegpes_fd2; return vo_mpegpes_fd2;
} }
static int my_ao_write(unsigned char* data,int len){ static int my_ao_write(const unsigned char* data,int len){
int orig_len = len; int orig_len = len;
#ifdef HAVE_DVB #ifdef HAVE_DVB
#define NFD 1 #define NFD 1

View File

@ -144,7 +144,7 @@ get_space (void)
static int static int
play (void *data, int len, int flags) play (void *data, int len, int flags)
{ {
extern int v4l2_write (unsigned char *data, int len); extern int v4l2_write (const unsigned char *data, int len);
if (ao_data.format != AF_FORMAT_MPEG2) if (ao_data.format != AF_FORMAT_MPEG2)
return 0; return 0;

View File

@ -108,7 +108,7 @@ ivtv_reset (int blank_screen)
} }
int int
ivtv_write (unsigned char *data, int len) ivtv_write (const unsigned char *data, int len)
{ {
if (ivtv_fd < 0) if (ivtv_fd < 0)
return 0; return 0;

View File

@ -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; int orig_len = len;
#ifdef HAVE_DVB #ifdef HAVE_DVB
#define NFD 2 #define NFD 2

View File

@ -69,7 +69,7 @@ static const vo_info_t info =
const LIBVO_EXTERN (v4l2) const LIBVO_EXTERN (v4l2)
int int
v4l2_write (unsigned char *data, int len) v4l2_write (const unsigned char *data, int len)
{ {
if (v4l2_fd < 0) if (v4l2_fd < 0)
return 0; return 0;