mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
warning fixes:
input.c: In function 'mp_input_set_section': input.c:1640: warning: suggest parentheses around assignment used as truth value input.c:1643: warning: suggest parentheses around assignment used as truth value mga_common.c: In function 'mga_init': mga_common.c:394: warning: suggest parentheses around assignment used as truth value playtreeparser.c: In function 'parse_smil': playtreeparser.c:523: warning: suggest parentheses around assignment used as truth value libmpdemux/demux_ts.c: In function 'ts_parse': libmpdemux/demux_ts.c:2795: warning: suggest parentheses around assignment used as truth value libmpdemux/demux_ts.c: In function 'demux_open_ts': libmpdemux/demux_ts.c:591: warning: 'frame_length' may be used uninitialized in this function git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24444 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -1637,10 +1637,10 @@ mp_input_set_section(char *name) {
|
||||
cmd_binds_default=NULL;
|
||||
if(section) free(section);
|
||||
if(name) section=strdup(name); else section=strdup("default");
|
||||
if(bind_section=mp_input_get_bind_section(section))
|
||||
if((bind_section=mp_input_get_bind_section(section)))
|
||||
cmd_binds=bind_section->cmd_binds;
|
||||
if(strcmp(section,"default")==0) return;
|
||||
if(bind_section=mp_input_get_bind_section(NULL))
|
||||
if((bind_section=mp_input_get_bind_section(NULL)))
|
||||
cmd_binds_default=bind_section->cmd_binds;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user