mirror of
https://github.com/mpv-player/mpv
synced 2025-02-24 17:06:58 +00:00
cleanup: remove warnings under libmenu/
This commit is contained in:
parent
fbf6885395
commit
a8b11797d8
@ -20,7 +20,7 @@
|
||||
#define MPLAYER_ACCESS_MPCONTEXT_H
|
||||
|
||||
struct MPContext;
|
||||
const void *mpctx_get_video_out(struct MPContext *mpctx);
|
||||
void *mpctx_get_video_out(struct MPContext *mpctx);
|
||||
void *mpctx_get_demuxer(struct MPContext *mpctx);
|
||||
void *mpctx_get_playtree_iter(struct MPContext *mpctx);
|
||||
void *mpctx_get_mixer(struct MPContext *mpctx);
|
||||
|
@ -447,7 +447,11 @@ static char *menu_fribidi(char *txt)
|
||||
static size_t buffer_size = 1024;
|
||||
static char *outputstr;
|
||||
|
||||
#if FRIBIDI_INTERFACE_VERSION < 3
|
||||
FriBidiCharType base;
|
||||
#else
|
||||
FriBidiParType base;
|
||||
#endif
|
||||
fribidi_boolean log2vis;
|
||||
size_t len;
|
||||
|
||||
|
@ -125,7 +125,7 @@ static int fill_channels_menu(menu_t *menu, dvb_channels_list *dvb_list_ptr)
|
||||
}
|
||||
else
|
||||
{
|
||||
mp_msg(MSGT_DEMUX, MSGL_ERR, "dvb_menu: fill_menu: couldn't malloc %d bytes for menu item: %s, exit\n",
|
||||
mp_msg(MSGT_DEMUX, MSGL_ERR, "dvb_menu: fill_menu: couldn't malloc %zd bytes for menu item: %s, exit\n",
|
||||
sizeof(list_entry_t), strerror(errno));
|
||||
break;
|
||||
}
|
||||
@ -155,7 +155,7 @@ static int fill_cards_menu(menu_t *menu, dvb_config_t *conf)
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "dvb_menu: fill_menu: couldn't malloc %d bytes for menu item: %s, exit\n",
|
||||
fprintf(stderr, "dvb_menu: fill_menu: couldn't malloc %zd bytes for menu item: %s, exit\n",
|
||||
sizeof(list_entry_t), strerror(errno));
|
||||
if(n)
|
||||
return 1;
|
||||
|
@ -230,7 +230,6 @@ static int open_dir(menu_t* menu,char* args) {
|
||||
struct stat st;
|
||||
int n;
|
||||
int path_fp;
|
||||
char* p = NULL;
|
||||
list_entry_t* e;
|
||||
DIR* dirp;
|
||||
extern int file_filter;
|
||||
@ -242,7 +241,6 @@ static int open_dir(menu_t* menu,char* args) {
|
||||
mpriv->dir = strdup(args);
|
||||
if(mpriv->p.title && mpriv->p.title != mpriv->title && mpriv->p.title != cfg_dflt.p.title)
|
||||
free(mpriv->p.title);
|
||||
p = strstr(mpriv->title,"%p");
|
||||
|
||||
mpriv->p.title = replace_path(mpriv->title,mpriv->dir,0);
|
||||
|
||||
|
@ -56,7 +56,7 @@ struct vf_priv_s {
|
||||
static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts);
|
||||
|
||||
void vf_menu_pause_update(struct vf_instance *vf) {
|
||||
const struct vo *video_out = mpctx_get_video_out(vf->priv->current->ctx);
|
||||
struct vo *video_out = mpctx_get_video_out(vf->priv->current->ctx);
|
||||
if(pause_mpi) {
|
||||
put_image(vf,pause_mpi, MP_NOPTS_VALUE);
|
||||
// Don't draw the osd atm
|
||||
|
Loading…
Reference in New Issue
Block a user