summaryrefslogtreecommitdiffstats
path: root/parser-mpcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser-mpcmd.c')
-rw-r--r--parser-mpcmd.c16
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]);
}