Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
765e9325
Commit
765e9325
authored
Jan 14, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sccanf supports %p, use it instead of hacky %ju
parent
116fe975
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_audio_video.c
+1
-1
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+3
-3
No files found.
src/control/mediacontrol_audio_video.c
View file @
765e9325
...
@@ -86,7 +86,7 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
...
@@ -86,7 +86,7 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
RAISE_NULL
(
mediacontrol_InternalException
,
"Out of memory"
);
RAISE_NULL
(
mediacontrol_InternalException
,
"Out of memory"
);
}
}
snprintf
(
path
,
255
,
"object:%
ju"
,
(
uintmax_t
)(
uintptr_t
)
p_cache
);
snprintf
(
path
,
255
,
"object:%
p"
,
p_cache
);
var_SetString
(
p_vout
,
"snapshot-path"
,
path
);
var_SetString
(
p_vout
,
"snapshot-path"
,
path
);
var_SetString
(
p_vout
,
"snapshot-format"
,
"png"
);
var_SetString
(
p_vout
,
"snapshot-format"
,
"png"
);
...
...
src/video_output/vout_intf.c
View file @
765e9325
...
@@ -568,13 +568,13 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -568,13 +568,13 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
DIR
*
path
;
DIR
*
path
;
int
i_ret
;
int
i_ret
;
bool
b_embedded_snapshot
;
bool
b_embedded_snapshot
;
uintmax_t
i_id
=
(
uintptr_t
)
NULL
;
void
*
p_obj
;
/* */
/* */
val
.
psz_string
=
var_GetNonEmptyString
(
p_vout
,
"snapshot-path"
);
val
.
psz_string
=
var_GetNonEmptyString
(
p_vout
,
"snapshot-path"
);
/* Embedded snapshot : if snapshot-path == object:object_ptr */
/* Embedded snapshot : if snapshot-path == object:object_ptr */
if
(
val
.
psz_string
&&
sscanf
(
val
.
psz_string
,
"object:%
ju"
,
&
i_id
)
>
0
)
if
(
val
.
psz_string
&&
sscanf
(
val
.
psz_string
,
"object:%
p"
,
&
p_obj
)
>
0
)
b_embedded_snapshot
=
true
;
b_embedded_snapshot
=
true
;
else
else
b_embedded_snapshot
=
false
;
b_embedded_snapshot
=
false
;
...
@@ -634,7 +634,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -634,7 +634,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
*/
*/
if
(
b_embedded_snapshot
)
if
(
b_embedded_snapshot
)
{
{
vlc_object_t
*
p_dest
=
(
vlc_object_t
*
)(
uintptr_t
)
i_id
;
vlc_object_t
*
p_dest
=
p_obj
;
block_t
*
p_block
;
block_t
*
p_block
;
snapshot_t
*
p_snapshot
;
snapshot_t
*
p_snapshot
;
size_t
i_size
;
size_t
i_size
;
...
...
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