libvlc_media_save_meta(): no need for playlist object
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 21 Aug 2012 17:37:00 +0000 (20:37 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 21 Aug 2012 17:37:00 +0000 (20:37 +0300)
lib/media.c

index afafdff..fc32c67 100644 (file)
@@ -475,8 +475,7 @@ void libvlc_media_set_meta( libvlc_media_t *p_md, libvlc_meta_t e_meta, const ch
 int libvlc_media_save_meta( libvlc_media_t *p_md )
 {
     assert( p_md );
-    vlc_object_t *p_obj = VLC_OBJECT(libvlc_priv(
-                            p_md->p_libvlc_instance->p_libvlc_int)->p_playlist);
+    vlc_object_t *p_obj = VLC_OBJECT(p_md->p_libvlc_instance->p_libvlc_int);
     return input_item_WriteMeta( p_obj, p_md->p_input_item ) == VLC_SUCCESS;
 }