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
9957b228
Commit
9957b228
authored
Apr 01, 2005
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a few problems with stream_UrlNew
parent
6a25256c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
include/vlc_stream.h
include/vlc_stream.h
+1
-1
src/input/stream.c
src/input/stream.c
+10
-5
No files found.
include/vlc_stream.h
View file @
9957b228
...
...
@@ -199,7 +199,7 @@ VLC_EXPORT( void, stream_DemuxDelete,( stream_t *s ) );
#define stream_MemoryNew( a, b, c, d ) __stream_MemoryNew( VLC_OBJECT(a), b, c, d )
VLC_EXPORT
(
stream_t
*
,
__stream_MemoryNew
,
(
vlc_object_t
*
p_obj
,
uint8_t
*
p_buffer
,
int64_t
i_size
,
vlc_bool_t
i_preserve_memory
)
);
#define stream_UrlNew( a, b ) __stream_UrlNew( VLC_OBJECT(a), b )
VLC_EXPORT
(
stream_t
*
,
__stream_UrlNew
,
(
vlc_object_t
*
p_this
,
char
*
psz_url
)
);
VLC_EXPORT
(
stream_t
*
,
__stream_UrlNew
,
(
vlc_object_t
*
p_this
,
c
onst
c
har
*
psz_url
)
);
/**
* @}
...
...
src/input/stream.c
View file @
9957b228
...
...
@@ -188,33 +188,38 @@ static int ASeek( stream_t *s, int64_t i_pos );
/****************************************************************************
* stream_AccessNew: create a stream from a access
****************************************************************************/
stream_t
*
__stream_UrlNew
(
vlc_object_t
*
p_parent
,
char
*
psz_url
)
stream_t
*
__stream_UrlNew
(
vlc_object_t
*
p_parent
,
c
onst
c
har
*
psz_url
)
{
char
*
psz_access
,
*
psz_demux
,
*
psz_path
;
char
*
psz_access
,
*
psz_demux
,
*
psz_path
,
*
psz_dup
;
access_t
*
p_access
;
stream_t
*
p_res
;
MRLSplit
(
p_parent
,
psz_url
,
&
psz_access
,
&
psz_demux
,
&
psz_path
);
psz_dup
=
strdup
(
psz_url
);
MRLSplit
(
p_parent
,
psz_dup
,
&
psz_access
,
&
psz_demux
,
&
psz_path
);
/* Now try a real access */
p_access
=
access2_New
(
p_parent
,
psz_access
,
NULL
,
psz_path
,
VLC_
TRU
E
);
psz_path
,
VLC_
FALS
E
);
if
(
p_access
==
NULL
)
{
msg_Err
(
p_parent
,
"no suitable access module for `%s'"
,
psz_url
);
free
(
psz_dup
);
return
NULL
;
}
p_res
=
stream_AccessNew
(
p_access
,
VLC_TRUE
);
if
(
p_res
)
{
p_res
->
pf_destroy
=
UStreamDestroy
;
free
(
psz_dup
);
return
p_res
;
}
else
{
access2_Delete
(
p_access
);
}
free
(
psz_dup
);
return
NULL
;
}
stream_t
*
stream_AccessNew
(
access_t
*
p_access
,
vlc_bool_t
b_quick
)
...
...
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