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
17d0f722
Commit
17d0f722
authored
Mar 08, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
screen_win32: little cleaning.
parent
406a0154
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
modules/access/screen/win32.c
modules/access/screen/win32.c
+7
-10
No files found.
modules/access/screen/win32.c
View file @
17d0f722
...
@@ -172,7 +172,7 @@ static block_t *CaptureBlockNew( demux_t *p_demux )
...
@@ -172,7 +172,7 @@ static block_t *CaptureBlockNew( demux_t *p_demux )
if
(
p_data
->
bmi
.
bmiHeader
.
biSize
==
0
)
if
(
p_data
->
bmi
.
bmiHeader
.
biSize
==
0
)
{
{
vlc_value_t
val
;
int
i_
val
;
/* Create the bitmap info header */
/* Create the bitmap info header */
p_data
->
bmi
.
bmiHeader
.
biSize
=
sizeof
(
BITMAPINFOHEADER
);
p_data
->
bmi
.
bmiHeader
.
biSize
=
sizeof
(
BITMAPINFOHEADER
);
p_data
->
bmi
.
bmiHeader
.
biWidth
=
p_sys
->
fmt
.
video
.
i_width
;
p_data
->
bmi
.
bmiHeader
.
biWidth
=
p_sys
->
fmt
.
video
.
i_width
;
...
@@ -186,13 +186,10 @@ static block_t *CaptureBlockNew( demux_t *p_demux )
...
@@ -186,13 +186,10 @@ static block_t *CaptureBlockNew( demux_t *p_demux )
p_data
->
bmi
.
bmiHeader
.
biClrUsed
=
0
;
p_data
->
bmi
.
bmiHeader
.
biClrUsed
=
0
;
p_data
->
bmi
.
bmiHeader
.
biClrImportant
=
0
;
p_data
->
bmi
.
bmiHeader
.
biClrImportant
=
0
;
var_Create
(
p_demux
,
"screen-fragment-size"
,
i_val
=
var_CreateGetInteger
(
p_demux
,
"screen-fragment-size"
);
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
p_data
->
i_fragment_size
=
i_val
>
0
?
i_val
:
p_sys
->
fmt
.
video
.
i_height
;
var_Get
(
p_demux
,
"screen-fragment-size"
,
&
val
);
p_data
->
i_fragment_size
=
i_val
>
p_sys
->
fmt
.
video
.
i_height
?
p_data
->
i_fragment_size
=
p_sys
->
fmt
.
video
.
i_height
:
val
.
i_int
>
0
?
val
.
i_int
:
p_sys
->
fmt
.
video
.
i_height
;
p_data
->
i_fragment_size
=
val
.
i_int
>
p_sys
->
fmt
.
video
.
i_height
?
p_sys
->
fmt
.
video
.
i_height
:
p_data
->
i_fragment_size
;
p_data
->
i_fragment_size
;
p_sys
->
f_fps
*=
(
p_sys
->
fmt
.
video
.
i_height
/
p_data
->
i_fragment_size
);
p_sys
->
f_fps
*=
(
p_sys
->
fmt
.
video
.
i_height
/
p_data
->
i_fragment_size
);
p_sys
->
i_incr
=
1000000
/
p_sys
->
f_fps
;
p_sys
->
i_incr
=
1000000
/
p_sys
->
f_fps
;
...
@@ -250,7 +247,7 @@ block_t *screen_Capture( demux_t *p_demux )
...
@@ -250,7 +247,7 @@ block_t *screen_Capture( demux_t *p_demux )
if
(
!
(
p_data
->
p_block
=
CaptureBlockNew
(
p_demux
)
)
)
if
(
!
(
p_data
->
p_block
=
CaptureBlockNew
(
p_demux
)
)
)
{
{
msg_Warn
(
p_demux
,
"cannot get block"
);
msg_Warn
(
p_demux
,
"cannot get block"
);
return
0
;
return
NULL
;
}
}
}
}
...
...
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