[vlc-devel] commit: Lua/SD: Set the "longname" configuration parameter ( Jean-Philippe André )

git version control git at videolan.org
Thu Feb 4 21:26:30 CET 2010


vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Thu Feb  4 20:53:34 2010 +0100| [cfea72e20a765aa4e5acbd0523774a29a1e20d73] | committer: Jean-Philippe André 

Lua/SD: Set the "longname" configuration parameter

This will allow successful matches between the luaSD title and the
real SD psz_name

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cfea72e20a765aa4e5acbd0523774a29a1e20d73
---

 modules/misc/lua/vlc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/misc/lua/vlc.c b/modules/misc/lua/vlc.c
index 25298be..2005e60 100644
--- a/modules/misc/lua/vlc.c
+++ b/modules/misc/lua/vlc.c
@@ -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 );




More information about the vlc-devel mailing list