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
73e7165f
Commit
73e7165f
authored
Mar 04, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access2_New code factorizaton
Signed-off-by:
Rémi Denis-Courmont
<
rem@videolan.org
>
parent
71375156
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
src/input/access.c
src/input/access.c
+7
-18
No files found.
src/input/access.c
View file @
73e7165f
...
@@ -39,10 +39,7 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
...
@@ -39,10 +39,7 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
access_t
*
p_access
=
vlc_object_create
(
p_obj
,
VLC_OBJECT_ACCESS
);
access_t
*
p_access
=
vlc_object_create
(
p_obj
,
VLC_OBJECT_ACCESS
);
if
(
p_access
==
NULL
)
if
(
p_access
==
NULL
)
{
msg_Err
(
p_obj
,
"vlc_object_create() failed"
);
return
NULL
;
return
NULL
;
}
/* Parse URL */
/* Parse URL */
p_access
->
p_source
=
p_source
;
p_access
->
p_source
=
p_source
;
...
@@ -50,17 +47,15 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
...
@@ -50,17 +47,15 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
{
{
msg_Dbg
(
p_obj
,
"creating access filter '%s'"
,
psz_access
);
msg_Dbg
(
p_obj
,
"creating access filter '%s'"
,
psz_access
);
p_access
->
psz_access
=
strdup
(
p_source
->
psz_access
);
p_access
->
psz_access
=
strdup
(
p_source
->
psz_access
);
p_access
->
psz_path
=
strdup
(
p_source
->
psz_path
);
p_access
->
psz_demux
=
strdup
(
p_source
->
psz_demux
);
}
}
else
else
{
{
msg_Dbg
(
p_obj
,
"creating access '%s' path='%s'"
,
msg_Dbg
(
p_obj
,
"creating access '%s' path='%s'"
,
psz_access
,
psz_path
);
psz_access
,
psz_path
);
p_access
->
psz_path
=
strdup
(
psz_path
);
p_access
->
psz_path
=
strdup
(
psz_path
);
p_access
->
psz_access
=
strdup
(
psz_access
);
p_access
->
psz_demux
=
strdup
(
psz_demux
);
}
}
p_access
->
psz_access
=
strdup
(
psz_access
);
p_access
->
psz_demux
=
strdup
(
psz_demux
);
p_access
->
pf_read
=
NULL
;
p_access
->
pf_read
=
NULL
;
p_access
->
pf_block
=
NULL
;
p_access
->
pf_block
=
NULL
;
...
@@ -79,16 +74,9 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
...
@@ -79,16 +74,9 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
/* Before module_Need (for var_Create...) */
/* Before module_Need (for var_Create...) */
vlc_object_attach
(
p_access
,
p_obj
);
vlc_object_attach
(
p_access
,
p_obj
);
if
(
p_source
)
p_access
->
p_module
=
{
module_Need
(
p_access
,
p_source
?
"access_filter"
:
"access2"
,
p_access
->
p_module
=
psz_access
,
VLC_TRUE
);
module_Need
(
p_access
,
"access_filter"
,
psz_access
,
VLC_TRUE
);
}
else
{
p_access
->
p_module
=
module_Need
(
p_access
,
"access2"
,
p_access
->
psz_access
,
VLC_TRUE
);
}
if
(
p_access
->
p_module
==
NULL
)
if
(
p_access
->
p_module
==
NULL
)
{
{
...
@@ -120,7 +108,8 @@ access_t *__access2_New( vlc_object_t *p_obj, const char *psz_access,
...
@@ -120,7 +108,8 @@ access_t *__access2_New( vlc_object_t *p_obj, const char *psz_access,
access_t
*
access2_FilterNew
(
access_t
*
p_source
,
const
char
*
psz_access_filter
)
access_t
*
access2_FilterNew
(
access_t
*
p_source
,
const
char
*
psz_access_filter
)
{
{
return
access2_InternalNew
(
VLC_OBJECT
(
p_source
),
psz_access_filter
,
return
access2_InternalNew
(
VLC_OBJECT
(
p_source
),
psz_access_filter
,
NULL
,
NULL
,
p_source
);
p_source
->
psz_demux
,
p_source
->
psz_path
,
p_source
);
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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