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
7b28b05e
Commit
7b28b05e
authored
Oct 13, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
8288876b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
src/input/demux.c
src/input/demux.c
+1
-1
src/input/stream.c
src/input/stream.c
+10
-1
src/input/stream.h
src/input/stream.h
+2
-7
src/input/stream_memory.c
src/input/stream_memory.c
+1
-1
No files found.
src/input/demux.c
View file @
7b28b05e
...
...
@@ -324,7 +324,7 @@ stream_t *__stream_DemuxNew( vlc_object_t *p_obj, const char *psz_demux,
stream_t
*
s
;
d_stream_sys_t
*
p_sys
;
s
=
vlc_stream_create
(
p_obj
);
s
=
stream_CommonNew
(
p_obj
);
if
(
s
==
NULL
)
return
NULL
;
s
->
pf_read
=
DStreamRead
;
...
...
src/input/stream.c
View file @
7b28b05e
...
...
@@ -263,6 +263,15 @@ static inline uint8_t * stream_buffer( stream_t *s )
return
s
->
p_sys
->
immediate
.
p_buffer
;
}
/****************************************************************************
* stream_CommonNew: create an empty stream structure
****************************************************************************/
stream_t
*
stream_CommonNew
(
vlc_object_t
*
p_obj
)
{
return
(
stream_t
*
)
vlc_custom_create
(
p_obj
,
sizeof
(
stream_t
),
VLC_OBJECT_GENERIC
,
"stream"
);
}
/****************************************************************************
* stream_UrlNew: create a stream from a access
****************************************************************************/
...
...
@@ -301,7 +310,7 @@ stream_t *__stream_UrlNew( vlc_object_t *p_parent, const char *psz_url )
stream_t
*
stream_AccessNew
(
access_t
*
p_access
,
bool
b_quick
)
{
stream_t
*
s
=
vlc_stream_create
(
VLC_OBJECT
(
p_access
)
);
stream_t
*
s
=
stream_CommonNew
(
VLC_OBJECT
(
p_access
)
);
stream_sys_t
*
p_sys
;
char
*
psz_list
=
NULL
;
...
...
src/input/stream.h
View file @
7b28b05e
...
...
@@ -53,13 +53,8 @@ struct stream_t
bool
b_little_endian
;
};
#include <libvlc.h>
static
inline
stream_t
*
vlc_stream_create
(
vlc_object_t
*
obj
)
{
return
(
stream_t
*
)
vlc_custom_create
(
obj
,
sizeof
(
stream_t
),
VLC_OBJECT_GENERIC
,
"stream"
);
}
/* */
stream_t
*
stream_CommonNew
(
vlc_object_t
*
);
/* */
stream_t
*
stream_AccessNew
(
access_t
*
p_access
,
bool
);
...
...
src/input/stream_memory.c
View file @
7b28b05e
...
...
@@ -53,7 +53,7 @@ static void Delete ( stream_t * );
stream_t
*
__stream_MemoryNew
(
vlc_object_t
*
p_this
,
uint8_t
*
p_buffer
,
int64_t
i_size
,
bool
i_preserve_memory
)
{
stream_t
*
s
=
vlc_stream_create
(
p_this
);
stream_t
*
s
=
stream_CommonNew
(
p_this
);
stream_sys_t
*
p_sys
;
if
(
!
s
)
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