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
d2910851
Commit
d2910851
authored
Apr 10, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_video_take_snapshot: removed kludge and fixed path_sanitize for win32
parent
b1b62947
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
src/control/video.c
src/control/video.c
+8
-4
src/text/strings.c
src/text/strings.c
+5
-0
No files found.
src/control/video.c
View file @
d2910851
...
...
@@ -158,14 +158,19 @@ libvlc_video_take_snapshot( libvlc_input_t *p_input, char *psz_filepath,
vout_thread_t
*
p_vout
=
GetVout
(
p_input
,
p_e
);
input_thread_t
*
p_input_thread
;
char
path
[
256
];
/* GetVout will raise the exception for us */
if
(
!
p_vout
)
{
return
;
}
if
(
!
psz_filepath
)
{
libvlc_exception_raise
(
p_e
,
"filepath is null"
);
return
;
}
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_input
->
p_instance
->
p_libvlc_int
,
p_input
->
i_input_id
);
...
...
@@ -175,8 +180,7 @@ libvlc_video_take_snapshot( libvlc_input_t *p_input, char *psz_filepath,
return
;
}
snprintf
(
path
,
255
,
"%s"
,
psz_filepath
);
var_SetString
(
p_vout
,
"snapshot-path"
,
path
);
var_SetString
(
p_vout
,
"snapshot-path"
,
psz_filepath
);
var_SetString
(
p_vout
,
"snapshot-format"
,
"png"
);
vout_Control
(
p_vout
,
VOUT_SNAPSHOT
);
...
...
src/text/strings.c
View file @
d2910851
...
...
@@ -840,6 +840,11 @@ void path_sanitize( char *str )
* want to.
*/
char *prev = str - 1;
#endif
#ifdef WIN32
/* check drive prefix if path is absolute */
if
(
isalpha
(
*
str
)
&&
(
':'
==
*
(
str
+
1
))
)
str
+=
2
;
#endif
while
(
*
str
)
{
...
...
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