Mercurial > mplayer.hg
diff mplayer.c @ 16227:4b2b8c90d370
loadfile/loadlist can now also add files to the playlist
author | reimar |
---|---|
date | Mon, 15 Aug 2005 08:30:43 +0000 |
parents | 6b86089c2edd |
children | 8a2585bc494f |
line wrap: on
line diff
--- a/mplayer.c Sun Aug 14 23:16:17 2005 +0000 +++ b/mplayer.c Mon Aug 15 08:30:43 2005 +0000 @@ -2998,6 +2998,9 @@ play_tree_t* e = play_tree_new(); play_tree_add_file(e,cmd->args[0].v.s); + if (cmd->args[1].v.i) // append + play_tree_append_entry(playtree, e); + else { // Go back to the start point while(play_tree_iter_up_step(playtree_iter,0,1) != PLAY_TREE_ITER_END) /* NOP */; @@ -3005,6 +3008,7 @@ play_tree_set_child(playtree,e); play_tree_iter_step(playtree_iter,0,0); eof = PT_NEXT_SRC; + } brk_cmd = 1; } break; case MP_CMD_LOADLIST : { @@ -3012,6 +3016,9 @@ if(!e) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_PlaylistLoadUnable,cmd->args[0].v.s); else { + if (cmd->args[1].v.i) // append + play_tree_append_entry(playtree, e); + else { // Go back to the start point while(play_tree_iter_up_step(playtree_iter,0,1) != PLAY_TREE_ITER_END) /* NOP */; @@ -3019,6 +3026,7 @@ play_tree_set_child(playtree,e); play_tree_iter_step(playtree_iter,0,0); eof = PT_NEXT_SRC; + } } brk_cmd = 1; } break;