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
eee7959f
Commit
eee7959f
authored
Jul 05, 2010
by
Kamil Klimek
Committed by
Rémi Denis-Courmont
Jul 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support for stream size in imem access module
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
d823d184
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
modules/access/imem.c
modules/access/imem.c
+9
-0
No files found.
modules/access/imem.c
View file @
eee7959f
...
...
@@ -115,6 +115,10 @@ static const char *cat_texts[] = {
#define RELEASE_LONGTEXT N_(\
"Address of the release callback function")
#define SIZE_TEXT N_("Size")
#define SIZE_LONGTEXT N_(\
"Size of stream in bytes")
vlc_module_begin
()
set_shortname
(
N_
(
"Memory input"
))
set_description
(
N_
(
"Memory input"
))
...
...
@@ -170,6 +174,10 @@ vlc_module_begin()
change_private
()
change_safe
()
add_integer
(
"imem-size"
,
0
,
NULL
,
SIZE_TEXT
,
SIZE_LONGTEXT
,
true
)
change_private
()
change_safe
()
add_shortcut
(
"imem"
)
set_capability
(
"access_demux"
,
0
)
set_callbacks
(
OpenDemux
,
CloseDemux
)
...
...
@@ -311,6 +319,7 @@ static int OpenAccess(vlc_object_t *object)
access
->
pf_block
=
Block
;
access
->
pf_seek
=
NULL
;
access
->
p_sys
=
(
access_sys_t
*
)
sys
;
access
->
info
.
i_size
=
var_InheritInteger
(
object
,
"imem-size"
);
return
VLC_SUCCESS
;
}
...
...
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