[vlc-commits] Copy meta when doing input_item_Copy
Ilkka Ollakka
git at videolan.org
Wed Mar 9 11:01:07 CET 2011
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Mar 9 12:00:20 2011 +0200| [1aca0772d54798b7f251078735a39a68a04b2ecd] | committer: Ilkka Ollakka
Copy meta when doing input_item_Copy
This enables to keep eg. channel names from dvb playlist when
copying them to medialibrary or inside playlist tree.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1aca0772d54798b7f251078735a39a68a04b2ecd
---
src/input/item.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/input/item.c b/src/input/item.c
index e47a1e1..7c8c439 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -898,6 +898,9 @@ input_item_t *input_item_Copy( vlc_object_t *p_obj, input_item_t *p_input )
}
}
+ p_new_input->p_meta = vlc_meta_New();
+ vlc_meta_Merge( p_new_input->p_meta, p_input->p_meta );
+
vlc_mutex_unlock( &p_input->lock );
return p_new_input;
More information about the vlc-commits
mailing list