mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
command.c: cosmetic changes ("type * ptr" -> "type *ptr")
These "type * ptr" cases were left in parameter lists from earlier automatic reindent. The "indent" binary does that when the type is an unrecognized typedef type.
This commit is contained in:
parent
31db39d8ec
commit
a0de759a21
238
command.c
238
command.c
@ -98,7 +98,7 @@ static void rescale_input_coordinates(struct MPContext *mpctx, int ix, int iy,
|
||||
vo->dheight, vo_fs);
|
||||
}
|
||||
|
||||
static int sub_source_by_pos(MPContext * mpctx, int pos)
|
||||
static int sub_source_by_pos(MPContext *mpctx, int pos)
|
||||
{
|
||||
int source = -1;
|
||||
int top = -1;
|
||||
@ -113,7 +113,7 @@ static int sub_source_by_pos(MPContext * mpctx, int pos)
|
||||
return source;
|
||||
}
|
||||
|
||||
static int sub_source(MPContext * mpctx)
|
||||
static int sub_source(MPContext *mpctx)
|
||||
{
|
||||
return sub_source_by_pos(mpctx, mpctx->global_sub_pos);
|
||||
}
|
||||
@ -168,15 +168,15 @@ static void log_sub(void)
|
||||
///@{
|
||||
|
||||
/// OSD level (RW)
|
||||
static int mp_property_osdlevel(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_osdlevel(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
return m_property_choice(prop, action, arg, &osd_level);
|
||||
}
|
||||
|
||||
/// Loop (RW)
|
||||
static int mp_property_loop(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_loop(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
struct MPOpts *opts = &mpctx->opts;
|
||||
switch (action) {
|
||||
@ -194,8 +194,8 @@ static int mp_property_loop(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Playback speed (RW)
|
||||
static int mp_property_playback_speed(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_playback_speed(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
struct MPOpts *opts = &mpctx->opts;
|
||||
switch (action) {
|
||||
@ -218,15 +218,15 @@ static int mp_property_playback_speed(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// filename with path (RO)
|
||||
static int mp_property_path(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_path(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
return m_property_string_ro(prop, action, arg, filename);
|
||||
}
|
||||
|
||||
/// filename without path (RO)
|
||||
static int mp_property_filename(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_filename(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
char *f;
|
||||
if (!filename)
|
||||
@ -239,8 +239,8 @@ static int mp_property_filename(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Demuxer name (RO)
|
||||
static int mp_property_demuxer(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_demuxer(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->demuxer)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -249,8 +249,8 @@ static int mp_property_demuxer(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Position in the stream (RW)
|
||||
static int mp_property_stream_pos(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_stream_pos(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->demuxer || !mpctx->demuxer->stream)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -269,8 +269,8 @@ static int mp_property_stream_pos(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Stream start offset (RO)
|
||||
static int mp_property_stream_start(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_stream_start(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->demuxer || !mpctx->demuxer->stream)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -283,8 +283,8 @@ static int mp_property_stream_start(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Stream end offset (RO)
|
||||
static int mp_property_stream_end(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_stream_end(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->demuxer || !mpctx->demuxer->stream)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -297,8 +297,8 @@ static int mp_property_stream_end(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Stream length (RO)
|
||||
static int mp_property_stream_length(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_stream_length(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->demuxer || !mpctx->demuxer->stream)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -312,8 +312,8 @@ static int mp_property_stream_length(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Media length in seconds (RO)
|
||||
static int mp_property_length(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_length(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
double len;
|
||||
|
||||
@ -325,8 +325,8 @@ static int mp_property_length(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Current position in percent (RW)
|
||||
static int mp_property_percent_pos(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx) {
|
||||
static int mp_property_percent_pos(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx) {
|
||||
int pos;
|
||||
|
||||
if (!mpctx->demuxer)
|
||||
@ -356,8 +356,8 @@ static int mp_property_percent_pos(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Current position in seconds (RW)
|
||||
static int mp_property_time_pos(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx) {
|
||||
static int mp_property_time_pos(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx) {
|
||||
if (!(mpctx->sh_video || (mpctx->sh_audio && mpctx->audio_out)))
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
|
||||
@ -512,8 +512,8 @@ static int mp_property_angle(m_option_t *prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Demuxer meta data
|
||||
static int mp_property_metadata(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx) {
|
||||
static int mp_property_metadata(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx) {
|
||||
m_property_action_t* ka;
|
||||
char* meta;
|
||||
static m_option_t key_type =
|
||||
@ -553,8 +553,8 @@ static int mp_property_metadata(m_option_t * prop, int action, void *arg,
|
||||
///@{
|
||||
|
||||
/// Volume (RW)
|
||||
static int mp_property_volume(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_volume(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
|
||||
if (!mpctx->sh_audio)
|
||||
@ -609,8 +609,8 @@ static int mp_property_volume(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Mute (RW)
|
||||
static int mp_property_mute(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_mute(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
|
||||
if (!mpctx->sh_audio)
|
||||
@ -647,8 +647,8 @@ static int mp_property_mute(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Audio delay (RW)
|
||||
static int mp_property_audio_delay(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_audio_delay(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!(mpctx->sh_audio && mpctx->sh_video))
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -671,8 +671,8 @@ static int mp_property_audio_delay(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Audio codec tag (RO)
|
||||
static int mp_property_audio_format(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_audio_format(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_audio)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -680,8 +680,8 @@ static int mp_property_audio_format(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Audio codec name (RO)
|
||||
static int mp_property_audio_codec(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_audio_codec(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_audio || !mpctx->sh_audio->codec)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -689,8 +689,8 @@ static int mp_property_audio_codec(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Audio bitrate (RO)
|
||||
static int mp_property_audio_bitrate(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_audio_bitrate(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_audio)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -698,8 +698,8 @@ static int mp_property_audio_bitrate(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Samplerate (RO)
|
||||
static int mp_property_samplerate(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_samplerate(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_audio)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -714,8 +714,8 @@ static int mp_property_samplerate(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Number of channels (RO)
|
||||
static int mp_property_channels(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_channels(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_audio)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -740,8 +740,8 @@ static int mp_property_channels(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Balance (RW)
|
||||
static int mp_property_balance(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_balance(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
float bal;
|
||||
|
||||
@ -791,8 +791,8 @@ static int mp_property_balance(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Selected audio id (RW)
|
||||
static int mp_property_audio(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_audio(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
struct MPOpts *opts = &mpctx->opts;
|
||||
int current_id = -1, tmp;
|
||||
@ -868,8 +868,8 @@ static int mp_property_audio(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Selected video id (RW)
|
||||
static int mp_property_video(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_video(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
struct MPOpts *opts = &mpctx->opts;
|
||||
int current_id = -1, tmp;
|
||||
@ -927,8 +927,8 @@ static int mp_property_video(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
}
|
||||
|
||||
static int mp_property_program(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_program(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
demux_program_t prog;
|
||||
|
||||
@ -960,8 +960,8 @@ static int mp_property_program(m_option_t * prop, int action, void *arg,
|
||||
///@{
|
||||
|
||||
/// Fullscreen state (RW)
|
||||
static int mp_property_fullscreen(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_fullscreen(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
|
||||
if (!mpctx->video_out)
|
||||
@ -989,8 +989,8 @@ static int mp_property_fullscreen(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
}
|
||||
|
||||
static int mp_property_deinterlace(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_deinterlace(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
int deinterlace;
|
||||
vf_instance_t *vf;
|
||||
@ -1020,8 +1020,8 @@ static int mp_property_deinterlace(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Panscan (RW)
|
||||
static int mp_property_panscan(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_panscan(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
|
||||
if (!mpctx->video_out
|
||||
@ -1054,8 +1054,8 @@ static int mp_property_panscan(m_option_t * prop, int action, void *arg,
|
||||
/// Helper to set vo flags.
|
||||
/** \ingroup PropertyImplHelper
|
||||
*/
|
||||
static int mp_property_vo_flag(m_option_t * prop, int action, void *arg,
|
||||
int vo_ctrl, int *vo_var, MPContext * mpctx)
|
||||
static int mp_property_vo_flag(m_option_t *prop, int action, void *arg,
|
||||
int vo_ctrl, int *vo_var, MPContext *mpctx)
|
||||
{
|
||||
|
||||
if (!mpctx->video_out)
|
||||
@ -1079,32 +1079,32 @@ static int mp_property_vo_flag(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Window always on top (RW)
|
||||
static int mp_property_ontop(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_ontop(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
return mp_property_vo_flag(prop, action, arg, VOCTRL_ONTOP,
|
||||
&mpctx->opts.vo_ontop, mpctx);
|
||||
}
|
||||
|
||||
/// Display in the root window (RW)
|
||||
static int mp_property_rootwin(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_rootwin(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
return mp_property_vo_flag(prop, action, arg, VOCTRL_ROOTWIN,
|
||||
&vo_rootwin, mpctx);
|
||||
}
|
||||
|
||||
/// Show window borders (RW)
|
||||
static int mp_property_border(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_border(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
return mp_property_vo_flag(prop, action, arg, VOCTRL_BORDER,
|
||||
&vo_border, mpctx);
|
||||
}
|
||||
|
||||
/// Framedropping state (RW)
|
||||
static int mp_property_framedropping(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_framedropping(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
|
||||
if (!mpctx->sh_video)
|
||||
@ -1124,8 +1124,8 @@ static int mp_property_framedropping(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Color settings, try to use vf/vo then fall back on TV. (RW)
|
||||
static int mp_property_gamma(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_gamma(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
int *gamma = prop->priv, r, val;
|
||||
|
||||
@ -1181,15 +1181,15 @@ static int mp_property_gamma(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// VSync (RW)
|
||||
static int mp_property_vsync(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_vsync(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
return m_property_flag(prop, action, arg, &vo_vsync);
|
||||
}
|
||||
|
||||
/// Video codec tag (RO)
|
||||
static int mp_property_video_format(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_video_format(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
char* meta;
|
||||
if (!mpctx->sh_video)
|
||||
@ -1223,8 +1223,8 @@ static int mp_property_video_format(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Video codec name (RO)
|
||||
static int mp_property_video_codec(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_video_codec(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video || !mpctx->sh_video->codec)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1233,8 +1233,8 @@ static int mp_property_video_codec(m_option_t * prop, int action,
|
||||
|
||||
|
||||
/// Video bitrate (RO)
|
||||
static int mp_property_video_bitrate(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_video_bitrate(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1242,8 +1242,8 @@ static int mp_property_video_bitrate(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Video display width (RO)
|
||||
static int mp_property_width(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_width(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1251,8 +1251,8 @@ static int mp_property_width(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Video display height (RO)
|
||||
static int mp_property_height(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_height(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1260,8 +1260,8 @@ static int mp_property_height(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Video fps (RO)
|
||||
static int mp_property_fps(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_fps(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1269,8 +1269,8 @@ static int mp_property_fps(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Video aspect (RO)
|
||||
static int mp_property_aspect(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_aspect(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1284,8 +1284,8 @@ static int mp_property_aspect(m_option_t * prop, int action, void *arg,
|
||||
///@{
|
||||
|
||||
/// Text subtitle position (RW)
|
||||
static int mp_property_sub_pos(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_sub_pos(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1303,8 +1303,8 @@ static int mp_property_sub_pos(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Selected subtitles (RW)
|
||||
static int mp_property_sub(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_sub(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
struct MPOpts *opts = &mpctx->opts;
|
||||
demux_stream_t *const d_sub = mpctx->d_sub;
|
||||
@ -1501,8 +1501,8 @@ static int mp_property_sub(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Selected sub source (RW)
|
||||
static int mp_property_sub_source(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_sub_source(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
int source;
|
||||
if (!mpctx->sh_video || mpctx->global_sub_size <= 0)
|
||||
@ -1579,8 +1579,8 @@ static int mp_property_sub_source(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Selected subtitles from specific source (RW)
|
||||
static int mp_property_sub_by_type(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_sub_by_type(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
int source, is_cur_source, offset;
|
||||
if (!mpctx->sh_video || mpctx->global_sub_size <= 0)
|
||||
@ -1679,8 +1679,8 @@ static int mp_property_sub_by_type(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Subtitle delay (RW)
|
||||
static int mp_property_sub_delay(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_sub_delay(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1688,8 +1688,8 @@ static int mp_property_sub_delay(m_option_t * prop, int action, void *arg,
|
||||
}
|
||||
|
||||
/// Alignment of text subtitles (RW)
|
||||
static int mp_property_sub_alignment(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_sub_alignment(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
char *name[] = { MSGTR_Top, MSGTR_Center, MSGTR_Bottom };
|
||||
|
||||
@ -1716,8 +1716,8 @@ static int mp_property_sub_alignment(m_option_t * prop, int action,
|
||||
}
|
||||
|
||||
/// Subtitle visibility (RW)
|
||||
static int mp_property_sub_visibility(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_sub_visibility(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1738,8 +1738,8 @@ static int mp_property_sub_visibility(m_option_t * prop, int action,
|
||||
|
||||
#ifdef USE_ASS
|
||||
/// Use margins for libass subtitles (RW)
|
||||
static int mp_property_ass_use_margins(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_ass_use_margins(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!mpctx->sh_video)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1758,8 +1758,8 @@ static int mp_property_ass_use_margins(m_option_t * prop, int action,
|
||||
#endif
|
||||
|
||||
/// Show only forced subtitles (RW)
|
||||
static int mp_property_sub_forced_only(m_option_t * prop, int action,
|
||||
void *arg, MPContext * mpctx)
|
||||
static int mp_property_sub_forced_only(m_option_t *prop, int action,
|
||||
void *arg, MPContext *mpctx)
|
||||
{
|
||||
if (!vo_spudec)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
@ -1781,8 +1781,8 @@ static int mp_property_sub_forced_only(m_option_t * prop, int action,
|
||||
|
||||
#ifdef HAVE_FREETYPE
|
||||
/// Subtitle scale (RW)
|
||||
static int mp_property_sub_scale(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_sub_scale(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
|
||||
switch (action) {
|
||||
@ -1834,8 +1834,8 @@ static int mp_property_sub_scale(m_option_t * prop, int action, void *arg,
|
||||
#ifdef USE_TV
|
||||
|
||||
/// TV color settings (RW)
|
||||
static int mp_property_tv_color(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_tv_color(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
int r, val;
|
||||
tvi_handle_t *tvh = mpctx->demuxer->priv;
|
||||
@ -1868,8 +1868,8 @@ static int mp_property_tv_color(m_option_t * prop, int action, void *arg,
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TV_TELETEXT
|
||||
static int mp_property_teletext_common(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_teletext_common(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
int val,result;
|
||||
int base_ioctl=(int)prop->priv;
|
||||
@ -1909,8 +1909,8 @@ static int mp_property_teletext_common(m_option_t * prop, int action, void *arg,
|
||||
return (result==TVI_CONTROL_TRUE?M_PROPERTY_OK:M_PROPERTY_ERROR);
|
||||
}
|
||||
|
||||
static int mp_property_teletext_mode(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_teletext_mode(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
tvi_handle_t *tvh = mpctx->demuxer->priv;
|
||||
int result;
|
||||
@ -1928,8 +1928,8 @@ static int mp_property_teletext_mode(m_option_t * prop, int action, void *arg,
|
||||
return M_PROPERTY_OK;
|
||||
}
|
||||
|
||||
static int mp_property_teletext_page(m_option_t * prop, int action, void *arg,
|
||||
MPContext * mpctx)
|
||||
static int mp_property_teletext_page(m_option_t *prop, int action, void *arg,
|
||||
MPContext *mpctx)
|
||||
{
|
||||
tvi_handle_t *tvh = mpctx->demuxer->priv;
|
||||
int result;
|
||||
@ -2129,7 +2129,7 @@ char* mp_property_print(const char *name, void* ctx)
|
||||
return ret;
|
||||
}
|
||||
|
||||
char *property_expand_string(MPContext * mpctx, char *str)
|
||||
char *property_expand_string(MPContext *mpctx, char *str)
|
||||
{
|
||||
return m_properties_expand_string(mp_properties, str, mpctx);
|
||||
}
|
||||
@ -2229,7 +2229,7 @@ static struct {
|
||||
|
||||
|
||||
/// Handle commands that set a property.
|
||||
static int set_property_command(MPContext * mpctx, mp_cmd_t * cmd)
|
||||
static int set_property_command(MPContext *mpctx, mp_cmd_t *cmd)
|
||||
{
|
||||
int i, r;
|
||||
m_option_t* prop;
|
||||
@ -2289,7 +2289,7 @@ static int set_property_command(MPContext * mpctx, mp_cmd_t * cmd)
|
||||
}
|
||||
|
||||
|
||||
int run_command(MPContext * mpctx, mp_cmd_t * cmd)
|
||||
int run_command(MPContext *mpctx, mp_cmd_t *cmd)
|
||||
{
|
||||
struct MPOpts *opts = &mpctx->opts;
|
||||
sh_audio_t * const sh_audio = mpctx->sh_audio;
|
||||
|
Loading…
Reference in New Issue
Block a user