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
6f24f332
Commit
6f24f332
authored
Mar 08, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sccaess_screen: little cleaning.
parent
17d0f722
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
modules/access/screen/mac.c
modules/access/screen/mac.c
+1
-1
modules/access/screen/screen.c
modules/access/screen/screen.c
+2
-5
modules/access/screen/x11.c
modules/access/screen/x11.c
+2
-2
No files found.
modules/access/screen/mac.c
View file @
6f24f332
...
...
@@ -186,7 +186,7 @@ block_t *screen_Capture( demux_t *p_demux )
if
(
!
(
p_block
=
block_New
(
p_demux
,
i_size
)
)
)
{
msg_Warn
(
p_demux
,
"cannot get block"
);
return
0
;
return
NULL
;
}
CGPoint
cursor_pos
;
...
...
modules/access/screen/screen.c
View file @
6f24f332
...
...
@@ -137,7 +137,6 @@ static int Open( vlc_object_t *p_this )
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
;
vlc_value_t
val
;
/* Fill p_demux field */
p_demux
->
pf_demux
=
Demux
;
...
...
@@ -149,10 +148,8 @@ static int Open( vlc_object_t *p_this )
/* Update default_pts to a suitable value for screen access */
var_Create
(
p_demux
,
"screen-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_demux
,
"screen-fps"
,
VLC_VAR_FLOAT
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_demux
,
"screen-fps"
,
&
val
);
p_sys
->
f_fps
=
val
.
f_float
;
p_sys
->
i_incr
=
1000000
/
val
.
f_float
;
p_sys
->
f_fps
=
var_CreateGetFloat
(
p_demux
,
"screen-fps"
);
p_sys
->
i_incr
=
1000000
/
p_sys
->
f_fps
;;
p_sys
->
i_next_date
=
0
;
#ifdef SCREEN_SUBSCREEN
...
...
modules/access/screen/x11.c
View file @
6f24f332
...
...
@@ -150,7 +150,7 @@ block_t *screen_Capture( demux_t *p_demux )
if
(
!
image
)
{
msg_Warn
(
p_demux
,
"cannot get image"
);
return
0
;
return
NULL
;
}
i_size
=
image
->
bytes_per_line
*
image
->
height
;
...
...
@@ -159,7 +159,7 @@ block_t *screen_Capture( demux_t *p_demux )
{
msg_Warn
(
p_demux
,
"cannot get block"
);
XDestroyImage
(
image
);
return
0
;
return
NULL
;
}
vlc_memcpy
(
p_block
->
p_buffer
,
image
->
data
,
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