]> git.sesse.net Git - vlc/commitdiff
Lua/SD: Set the "longname" configuration parameter
authorJean-Philippe André <jpeg@videolan.org>
Thu, 4 Feb 2010 19:53:34 +0000 (20:53 +0100)
committerJean-Philippe André <jpeg@videolan.org>
Thu, 4 Feb 2010 20:22:40 +0000 (21:22 +0100)
This will allow successful matches between the luaSD title and the
real SD psz_name

modules/misc/lua/vlc.c

index 25298be740206a9de3e9bb01d45255238191a8be..2005e609d9424a3d23c75d312dfa57333bfa5f34 100644 (file)
@@ -555,7 +555,8 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
                     if( temp )
                         *temp = '\0';
                     *(*ppsz_file + strlen(*ppsz_file) - 4 )= '\0';
-                    if( asprintf( &psz_name, "lua{sd=%s}", *ppsz_file ) < 0 )
+                    if( asprintf( &psz_name, "lua{sd=%s,longname=%s}",
+                                  *ppsz_file, description + 17 ) < 0 )
                     {
                         fclose( fd );
                         free( psz_filename );