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
3946b13f
Commit
3946b13f
authored
Sep 25, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add stream_Custom
parent
a799753e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
include/vlc_stream.h
include/vlc_stream.h
+5
-0
src/input/stream.c
src/input/stream.c
+9
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
No files found.
include/vlc_stream.h
View file @
3946b13f
...
...
@@ -159,6 +159,11 @@ VLC_API block_t * stream_Block( stream_t *s, size_t );
VLC_API
char
*
stream_ReadLine
(
stream_t
*
);
VLC_API
input_item_t
*
stream_ReadDir
(
stream_t
*
);
/**
* Low level custom stream creation.
*/
VLC_API
stream_t
*
stream_CustomNew
(
vlc_object_t
*
,
void
(
*
)(
stream_t
*
));
/**
* Get the size of the stream.
*/
...
...
src/input/stream.c
View file @
3946b13f
...
...
@@ -56,6 +56,14 @@ typedef struct stream_priv_t
}
text
;
}
stream_priv_t
;
/**
* Allocates a custom VLC stream object
*/
stream_t
*
stream_CustomNew
(
vlc_object_t
*
parent
,
void
(
*
destroy
)(
stream_t
*
))
{
return
stream_CommonNew
(
parent
,
destroy
);
}
/**
* Allocates a VLC stream object
*/
...
...
@@ -73,6 +81,7 @@ stream_t *stream_CommonNew(vlc_object_t *parent, void (*destroy)(stream_t *))
s
->
pf_read
=
NULL
;
s
->
pf_readdir
=
NULL
;
s
->
pf_control
=
NULL
;
s
->
p_sys
=
NULL
;
s
->
p_input
=
NULL
;
assert
(
destroy
!=
NULL
);
priv
->
destroy
=
destroy
;
...
...
src/libvlccore.sym
View file @
3946b13f
...
...
@@ -394,6 +394,7 @@ spu_RegisterChannel
spu_ClearChannel
stream_Block
stream_Control
stream_CustomNew
stream_Delete
stream_DemuxNew
stream_DemuxSend
...
...
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