diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /parser-mpcmd.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'parser-mpcmd.c')
-rw-r--r-- | parser-mpcmd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/parser-mpcmd.c b/parser-mpcmd.c index d6c3d375ce..892fcfbf40 100644 --- a/parser-mpcmd.c +++ b/parser-mpcmd.c @@ -58,8 +58,8 @@ static int is_entry_option(struct m_config *mconfig, char *opt, char *param, static inline void add_entry(play_tree_t **last_parentp, play_tree_t **last_entryp, play_tree_t *entry) { if(*last_entryp == NULL) - play_tree_set_child(*last_parentp,entry); - else + play_tree_set_child(*last_parentp,entry); + else play_tree_append_entry(*last_entryp,entry); *last_entryp = entry; } @@ -90,7 +90,7 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv) mode = GLOBAL; #ifdef CONFIG_MACOSX_FINDER root=macosx_finder_args(config, argc, argv); - if(root) + if(root) return root; #endif @@ -138,7 +138,7 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv) last_parent = last_entry->parent; continue; } - + if ((no_more_opts == 0) && (*opt == '-') && (*(opt+1) != 0)) /* option */ { int tmp = 0; @@ -232,12 +232,12 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv) } else { end_title=strtol(splitpos+1,NULL,10); } - - if (dvd_range(start_title) && dvd_range(end_title) && (start_title<end_title)) + + if (dvd_range(start_title) && dvd_range(end_title) && (start_title<end_title)) { for (j=start_title;j<=end_title;j++) { - if (j!=start_title) + if (j!=start_title) entry=play_tree_new(); snprintf(entbuf,9,"dvd://%d",j); play_tree_add_file(entry,entbuf); @@ -247,7 +247,7 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv) } else { mp_tmsg(MSGT_CFGPARSER, MSGL_ERR, "Invalid play entry %s\n", argv[i]); } - + } else { // dvd:// or dvd://x entry play_tree_add_file(entry,argv[i]); } |