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
a1967050
Commit
a1967050
authored
May 16, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc-thumb: bugfixes suggested by courmisch
parent
b3c26d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
doc/libvlc/vlc-thumb.c
doc/libvlc/vlc-thumb.c
+6
-4
No files found.
doc/libvlc/vlc-thumb.c
View file @
a1967050
...
...
@@ -56,7 +56,8 @@ static void cmdline(int argc, const char **argv, const char **in,
*
in
=
argv
[
idx
++
];
*
out
=
strdup
(
argv
[
idx
++
]);
assert
(
*
out
);
if
(
!*
out
)
abort
();
len
=
strlen
(
*
out
);
if
(
len
>=
4
&&
!
strcmp
(
*
out
+
len
-
4
,
".png"
))
{
...
...
@@ -69,7 +70,8 @@ static void cmdline(int argc, const char **argv, const char **in,
* and nautilus doesn't give filenames ending in .png */
*
out_with_ext
=
malloc
(
len
+
sizeof
".png"
);
assert
(
*
out_with_ext
);
if
(
!*
out_with_ext
)
abort
();
strcpy
(
*
out_with_ext
,
*
out
);
strcat
(
*
out_with_ext
,
".png"
);
}
...
...
@@ -86,7 +88,7 @@ static libvlc_instance_t *create_libvlc(void)
"--no-inhibit"
,
/* we don't want interfaces */
"--no-disable-screensaver"
,
/* we don't want interfaces */
"--no-snapshot-preview"
,
/* no blending in dummy vout */
#if
1
#if
ndef NDEBUG
"--verbose=2"
,
/* full log */
#endif
};
...
...
@@ -167,7 +169,7 @@ int main(int argc, const char **argv)
libvlc_media_t
*
m
;
/* mandatory to support UTF-8 filenames (provided the locale is well set)*/
setlocale
(
LC_ALL
,
getenv
(
"LANG"
)
);
setlocale
(
LC_ALL
,
""
);
cmdline
(
argc
,
argv
,
&
in
,
&
out
,
&
out_with_ext
,
&
width
);
...
...
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