Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
2fcddc86
Commit
2fcddc86
authored
Feb 08, 2010
by
Fabio Ritrovato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua SD: fix for scripts without a description and ".luac" files
parent
ab399a4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
modules/misc/lua/vlc.c
modules/misc/lua/vlc.c
+26
-4
No files found.
modules/misc/lua/vlc.c
View file @
2fcddc86
...
...
@@ -602,17 +602,39 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
char
*
temp
=
strchr
(
description
,
'\n'
);
if
(
temp
)
*
temp
=
'\0'
;
*
(
*
ppsz_file
+
strlen
(
*
ppsz_file
)
-
4
)
=
'\0'
;
temp
=
strchr
(
*
ppsz_file
,
'.'
);
if
(
temp
)
*
temp
=
'\0'
;
char
*
psz_longname
;
if
(
!
strncmp
(
description
,
"--SD_Description="
,
17
)
)
{
if
(
!
(
psz_longname
=
strdup
(
description
+
17
)
)
)
{
fclose
(
fd
);
free
(
psz_filename
);
goto
error
;
}
}
else
{
if
(
!
(
psz_longname
=
strdup
(
*
ppsz_file
)
)
)
{
fclose
(
fd
);
free
(
psz_filename
);
goto
error
;
}
}
if
(
asprintf
(
&
psz_name
,
"lua{sd=%s,longname=%s}"
,
*
ppsz_file
,
description
+
17
)
<
0
)
*
ppsz_file
,
psz_longname
)
<
0
)
{
fclose
(
fd
);
free
(
psz_filename
);
free
(
psz_longname
);
goto
error
;
}
vlc_sd_probe_Add
(
probe
,
psz_name
,
description
+
17
);
vlc_sd_probe_Add
(
probe
,
psz_name
,
psz_longname
);
free
(
psz_name
);
free
(
psz_longname
);
}
fclose
(
fd
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment