Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
524810e6
Commit
524810e6
authored
Jan 16, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the access helpers.
parent
81c3ec4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
31 deletions
+9
-31
modules/access/pvr.c
modules/access/pvr.c
+4
-17
modules/access/v4l2.c
modules/access/v4l2.c
+5
-14
No files found.
modules/access/pvr.c
View file @
524810e6
...
...
@@ -553,23 +553,10 @@ static int Open( vlc_object_t * p_this )
memset
(
&
device_capability
,
0
,
sizeof
(
struct
v4l2_capability
)
);
p_access
->
pf_read
=
Read
;
p_access
->
pf_block
=
NULL
;
p_access
->
pf_seek
=
NULL
;
p_access
->
pf_control
=
Control
;
p_access
->
info
.
i_update
=
0
;
p_access
->
info
.
i_size
=
0
;
p_access
->
info
.
i_pos
=
0
;
p_access
->
info
.
b_eof
=
false
;
p_access
->
info
.
i_title
=
0
;
p_access
->
info
.
i_seekpoint
=
0
;
/* create private access data */
p_sys
=
calloc
(
sizeof
(
access_sys_t
),
1
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
p_access
->
p_sys
=
p_sys
;
access_InitFields
(
p_access
);
ACCESS_SET_CALLBACKS
(
Read
,
NULL
,
Control
,
NULL
);
p_sys
=
p_access
->
p_sys
=
calloc
(
1
,
sizeof
(
access_sys_t
));
if
(
!
p_sys
)
return
VLC_ENOMEM
;
/* defaults values */
var_Create
(
p_access
,
"pvr-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
...
...
modules/access/v4l2.c
View file @
524810e6
...
...
@@ -990,20 +990,11 @@ static int AccessOpen( vlc_object_t * p_this )
/* Only when selected */
if
(
*
p_access
->
psz_access
==
'\0'
)
return
VLC_EGENERIC
;
p_access
->
pf_read
=
AccessRead
;
p_access
->
pf_block
=
NULL
;
p_access
->
pf_seek
=
NULL
;
p_access
->
pf_control
=
AccessControl
;
p_access
->
info
.
i_update
=
0
;
p_access
->
info
.
i_size
=
0
;
p_access
->
info
.
i_pos
=
0
;
p_access
->
info
.
b_eof
=
false
;
p_access
->
info
.
i_title
=
0
;
p_access
->
info
.
i_seekpoint
=
0
;
p_sys
=
calloc
(
1
,
sizeof
(
demux_sys_t
)
);
p_access
->
p_sys
=
(
access_sys_t
*
)
p_sys
;
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
access_InitFields
(
p_access
);
ACCESS_SET_CALLBACKS
(
AccessRead
,
NULL
,
AccessControl
,
NULL
);
p_sys
=
calloc
(
1
,
sizeof
(
demux_sys_t
));
if
(
!
p_sys
)
return
VLC_ENOMEM
;
p_access
->
p_sys
=
(
access_sys_t
*
)
p_sys
;
GetV4L2Params
(
p_sys
,
(
vlc_object_t
*
)
p_access
);
...
...
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