]> git.sesse.net Git - vlc/blobdiff - modules/access/dvdnav.c
Fix Stream title. Patch by Diego "Flameeyes" Petteno
[vlc] / modules / access / dvdnav.c
index 92646b1ed7069d0a1068b33d2d143dbef4af52ee..f362e3eecf0b7760494ea717edc0a31fb4149f39 100644 (file)
@@ -62,7 +62,7 @@
 
 #define CACHING_TEXT N_("Caching value in ms")
 #define CACHING_LONGTEXT N_( \
-    "Default caching value for DVDs. This "\
+    "Caching value for DVDs. This "\
     "value should be set in milliseconds." )
 #define MENU_TEXT N_("Start directly in menu")
 #define MENU_LONGTEXT N_( \
@@ -543,10 +543,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             dvdnav_get_title_string(p_sys->dvdnav, &title_name);
             if( (NULL != title_name) && ('\0' != title_name[0]) )
             {
-                vlc_meta_t **pp_meta = (vlc_meta_t**)va_arg( args, vlc_meta_t** );
-                vlc_meta_t *meta;
-                *pp_meta = meta = vlc_meta_New();
-                vlc_meta_Add( meta, VLC_META_TITLE, title_name );
+                vlc_meta_t *p_meta = (vlc_meta_t*)va_arg( args, vlc_meta_t* );
+                vlc_meta_SetTitle( p_meta, title_name );
                 return VLC_SUCCESS;
             }
             return VLC_EGENERIC;