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:
parent
680703ecae
commit
8d5912e60d
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user