Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
aa45359c
Commit
aa45359c
authored
Jan 16, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix identation
parent
adbbaf3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+7
-7
No files found.
src/video_output/vout_intf.c
View file @
aa45359c
...
@@ -470,7 +470,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -470,7 +470,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
vlc_object_t
*
p_dest
;
vlc_object_t
*
p_dest
;
block_t
*
p_block
;
block_t
*
p_block
;
snapshot_t
*
p_snapshot
;
snapshot_t
*
p_snapshot
;
int
i_size
;
int
i_size
;
/* Destination object-id is following object: */
/* Destination object-id is following object: */
i_id
=
atoi
(
&
val
.
psz_string
[
7
]
);
i_id
=
atoi
(
&
val
.
psz_string
[
7
]
);
...
@@ -488,9 +488,9 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -488,9 +488,9 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
/* Save the snapshot to a memory zone */
/* Save the snapshot to a memory zone */
fmt_in
=
p_vout
->
fmt_in
;
fmt_in
=
p_vout
->
fmt_in
;
fmt_out
.
i_sar_num
=
fmt_out
.
i_sar_den
=
1
;
fmt_out
.
i_sar_num
=
fmt_out
.
i_sar_den
=
1
;
fmt_out
.
i_width
=
320
;
fmt_out
.
i_width
=
320
;
fmt_out
.
i_height
=
200
;
fmt_out
.
i_height
=
200
;
fmt_out
.
i_chroma
=
VLC_FOURCC
(
'p'
,
'n'
,
'g'
,
' '
);
fmt_out
.
i_chroma
=
VLC_FOURCC
(
'p'
,
'n'
,
'g'
,
' '
);
p_block
=
(
block_t
*
)
image_Write
(
p_image
,
p_pic
,
&
fmt_in
,
&
fmt_out
);
p_block
=
(
block_t
*
)
image_Write
(
p_image
,
p_pic
,
&
fmt_in
,
&
fmt_out
);
if
(
!
p_block
)
if
(
!
p_block
)
{
{
...
@@ -498,7 +498,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -498,7 +498,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
image_HandlerDelete
(
p_image
);
image_HandlerDelete
(
p_image
);
vlc_cond_signal
(
&
p_dest
->
object_wait
);
vlc_cond_signal
(
&
p_dest
->
object_wait
);
vlc_mutex_unlock
(
&
p_dest
->
object_lock
);
vlc_mutex_unlock
(
&
p_dest
->
object_lock
);
vlc_object_release
(
p_dest
);
vlc_object_release
(
p_dest
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -511,11 +511,11 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -511,11 +511,11 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
image_HandlerDelete
(
p_image
);
image_HandlerDelete
(
p_image
);
vlc_cond_signal
(
&
p_dest
->
object_wait
);
vlc_cond_signal
(
&
p_dest
->
object_wait
);
vlc_mutex_unlock
(
&
p_dest
->
object_lock
);
vlc_mutex_unlock
(
&
p_dest
->
object_lock
);
vlc_object_release
(
p_dest
);
vlc_object_release
(
p_dest
);
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
i_size
=
p_block
->
i_buffer
;
i_size
=
p_block
->
i_buffer
;
p_snapshot
->
i_width
=
fmt_out
.
i_width
;
p_snapshot
->
i_width
=
fmt_out
.
i_width
;
p_snapshot
->
i_height
=
fmt_out
.
i_height
;
p_snapshot
->
i_height
=
fmt_out
.
i_height
;
...
...
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