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
9f052b2b
Commit
9f052b2b
authored
Jan 25, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added path information in stream_t.
parent
64d1e176
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
3 deletions
+22
-3
include/vlc_stream.h
include/vlc_stream.h
+3
-0
src/input/stream.c
src/input/stream.c
+3
-1
src/input/stream_demux.c
src/input/stream_demux.c
+2
-1
src/input/stream_filter.c
src/input/stream_filter.c
+6
-0
src/input/stream_memory.c
src/input/stream_memory.c
+8
-1
No files found.
include/vlc_stream.h
View file @
9f052b2b
...
...
@@ -56,6 +56,9 @@ struct stream_t
/* Module properties for stream filter */
module_t
*
p_module
;
/* Real or virtual path (it can only be changed during stream_t opening) */
char
*
psz_path
;
/* Stream source for stream filter */
stream_t
*
p_source
;
...
...
src/input/stream.c
View file @
9f052b2b
...
...
@@ -237,6 +237,7 @@ void stream_CommonDelete( stream_t *s )
vlc_iconv_close
(
s
->
p_text
->
conv
);
free
(
s
->
p_text
);
}
free
(
s
->
psz_path
);
vlc_object_release
(
s
);
}
...
...
@@ -284,8 +285,9 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
if
(
!
s
)
return
NULL
;
s
->
psz_path
=
strdup
(
p_access
->
psz_path
);
s
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
if
(
!
p_sys
)
if
(
!
s
->
psz_path
||
!
s
->
p_sys
)
{
stream_CommonDelete
(
s
);
return
NULL
;
...
...
src/input/stream_demux.c
View file @
9f052b2b
...
...
@@ -64,13 +64,14 @@ stream_t *__stream_DemuxNew( vlc_object_t *p_obj, const char *psz_demux,
s
=
stream_CommonNew
(
p_obj
);
if
(
s
==
NULL
)
return
NULL
;
s
->
psz_path
=
strdup
(
""
);
/* N/A */
s
->
pf_read
=
DStreamRead
;
s
->
pf_peek
=
DStreamPeek
;
s
->
pf_control
=
DStreamControl
;
s
->
pf_destroy
=
DStreamDelete
;
s
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
if
(
s
->
p_sys
==
NULL
)
if
(
!
s
->
psz_path
||
!
s
->
p_sys
)
{
stream_CommonDelete
(
s
);
return
NULL
;
...
...
src/input/stream_filter.c
View file @
9f052b2b
...
...
@@ -43,6 +43,12 @@ stream_t *stream_FilterNew( stream_t *p_source,
return
NULL
;
/* */
s
->
psz_path
=
strdup
(
p_source
->
psz_path
);
if
(
!
s
->
psz_path
)
{
stream_CommonDelete
(
s
);
return
NULL
;
}
s
->
p_source
=
p_source
;
/* */
...
...
src/input/stream_memory.c
View file @
9f052b2b
...
...
@@ -56,9 +56,16 @@ stream_t *__stream_MemoryNew( vlc_object_t *p_this, uint8_t *p_buffer,
stream_t
*
s
=
stream_CommonNew
(
p_this
);
stream_sys_t
*
p_sys
;
if
(
!
s
)
return
NULL
;
if
(
!
s
)
return
NULL
;
s
->
psz_path
=
strdup
(
""
);
/* N/A */
s
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
stream_sys_t
)
);
if
(
!
s
->
psz_path
||
!
s
->
p_sys
)
{
stream_CommonDelete
(
s
);
return
NULL
;
}
p_sys
->
i_pos
=
0
;
p_sys
->
i_size
=
i_size
;
p_sys
->
p_buffer
=
p_buffer
;
...
...
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