Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
270b1511
Commit
270b1511
authored
Jun 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* demux2, access2: prototype change.
parent
65fd1e94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
37 deletions
+7
-37
modules/access/access2.c
modules/access/access2.c
+3
-18
modules/demux/demux2.c
modules/demux/demux2.c
+4
-19
No files found.
modules/access/access2.c
View file @
270b1511
...
...
@@ -102,28 +102,13 @@ static int Access2Open( vlc_object_t * p_this )
access2_sys_t
*
p_sys
=
malloc
(
sizeof
(
access2_sys_t
)
);
access_t
*
p_access
;
char
*
psz_uri
;
int
i_int
;
int64_t
i_64
;
vlc_bool_t
b_bool
;
psz_uri
=
malloc
(
strlen
(
p_input
->
psz_access
)
+
strlen
(
p_input
->
psz_demux
)
+
strlen
(
p_input
->
psz_name
)
+
1
+
3
+
1
);
if
(
p_input
->
psz_demux
&&
*
p_input
->
psz_demux
)
{
sprintf
(
psz_uri
,
"%s/%s://%s"
,
p_input
->
psz_access
,
p_input
->
psz_demux
,
p_input
->
psz_name
);
}
else
if
(
p_input
->
psz_access
&&
*
p_input
->
psz_access
)
{
sprintf
(
psz_uri
,
"%s://%s"
,
p_input
->
psz_access
,
p_input
->
psz_name
);
}
else
{
sprintf
(
psz_uri
,
"://%s"
,
p_input
->
psz_name
);
}
p_access
=
access2_New
(
p_input
,
psz_uri
);
free
(
psz_uri
);
p_access
=
access2_New
(
p_input
,
p_input
->
psz_access
,
p_input
->
psz_demux
,
p_input
->
psz_name
);
if
(
!
p_access
)
{
...
...
modules/demux/demux2.c
View file @
270b1511
...
...
@@ -94,30 +94,15 @@ static int Demux2Open( vlc_object_t * p_this )
demux_t
*
p_demux
;
playlist_t
*
p_playlist
;
char
*
psz_uri
;
if
(
input_InitStream
(
p_input
,
0
)
)
{
return
VLC_EGENERIC
;
}
psz_uri
=
malloc
(
strlen
(
p_input
->
psz_access
)
+
strlen
(
p_input
->
psz_demux
)
+
strlen
(
p_input
->
psz_name
)
+
1
+
3
+
1
);
if
(
p_input
->
psz_demux
&&
*
p_input
->
psz_demux
)
{
sprintf
(
psz_uri
,
"%s/%s://%s"
,
p_input
->
psz_access
,
p_input
->
psz_demux
,
p_input
->
psz_name
);
}
else
if
(
p_input
->
psz_access
&&
*
p_input
->
psz_access
)
{
sprintf
(
psz_uri
,
"%s://%s"
,
p_input
->
psz_access
,
p_input
->
psz_name
);
}
else
{
sprintf
(
psz_uri
,
"://%s"
,
p_input
->
psz_name
);
}
p_demux
=
demux2_New
(
p_input
,
psz_uri
,
p_input
->
s
,
p_input
->
p_es_out
);
free
(
psz_uri
);
p_demux
=
demux2_New
(
p_input
,
p_input
->
psz_access
,
p_input
->
psz_demux
,
p_input
->
psz_name
,
p_input
->
s
,
p_input
->
p_es_out
);
if
(
!
p_demux
)
{
...
...
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