mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
Set the params given to a playlist url to the playlist
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5218 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
aa2319e1ea
commit
61f5edf208
@ -937,6 +937,7 @@ play_dvd:
|
||||
goto goto_next_file;
|
||||
}
|
||||
play_tree_insert_entry(playtree_iter->tree,entry);
|
||||
play_tree_set_params_from(entry,playtree_iter->tree);
|
||||
entry = playtree_iter->tree;
|
||||
if(play_tree_iter_step(playtree_iter,1,0) != PLAY_TREE_ITER_ENTRY) {
|
||||
eof = PT_NEXT_ENTRY;
|
||||
|
17
playtree.c
17
playtree.c
@ -382,6 +382,23 @@ play_tree_unset_param(play_tree_t* pt, char* name) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
play_tree_set_params_from(play_tree_t* dest,play_tree_t* src) {
|
||||
int i;
|
||||
|
||||
#ifdef MP_DEBUG
|
||||
assert(dest != NULL);
|
||||
assert(src != NULL);
|
||||
#endif
|
||||
|
||||
if(!src->params)
|
||||
return;
|
||||
|
||||
for(i = 0; src->params[i].name != NULL ; i++)
|
||||
play_tree_set_param(dest,src->params[i].name,src->params[i].value);
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
play_tree_iter_push_params(play_tree_iter_t* iter) {
|
||||
int n;
|
||||
|
@ -117,6 +117,9 @@ play_tree_set_param(play_tree_t* pt, char* name, char* val);
|
||||
int
|
||||
play_tree_unset_param(play_tree_t* pt, char* name);
|
||||
|
||||
// Set all paramter of source in dest
|
||||
void
|
||||
play_tree_set_params_from(play_tree_t* dest,play_tree_t* src);
|
||||
|
||||
/// Iterator
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user