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
3484d8f0
Commit
3484d8f0
authored
Oct 16, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsh: factorize.
parent
09dcfc63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
19 deletions
+12
-19
modules/access/mms/mmsh.c
modules/access/mms/mmsh.c
+12
-19
No files found.
modules/access/mms/mmsh.c
View file @
3484d8f0
...
...
@@ -147,21 +147,14 @@ int MMSHOpen( access_t *p_access )
(
*
p_sys
->
url
.
psz_host
==
'\0'
)
)
{
msg_Err
(
p_access
,
"invalid host"
);
vlc_UrlClean
(
&
p_sys
->
proxy
);
vlc_UrlClean
(
&
p_sys
->
url
);
free
(
p_sys
);
return
VLC_EGENERIC
;
goto
error
;
}
if
(
p_sys
->
url
.
i_port
<=
0
)
p_sys
->
url
.
i_port
=
80
;
if
(
Describe
(
p_access
,
&
psz_location
)
)
{
vlc_UrlClean
(
&
p_sys
->
proxy
);
vlc_UrlClean
(
&
p_sys
->
url
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
goto
error
;
/* Handle redirection */
if
(
psz_location
&&
*
psz_location
)
{
...
...
@@ -172,11 +165,8 @@ int MMSHOpen( access_t *p_access )
if
(
!
p_input
)
{
vlc_UrlClean
(
&
p_sys
->
proxy
);
vlc_UrlClean
(
&
p_sys
->
url
);
free
(
p_sys
);
free
(
psz_location
);
return
VLC_EGENERIC
;
goto
error
;
}
/** \bug we do not autodelete here */
p_new_loc
=
input_item_New
(
p_access
,
psz_location
,
psz_location
);
...
...
@@ -197,10 +187,7 @@ int MMSHOpen( access_t *p_access )
{
msg_Err
(
p_access
,
"cannot start stream"
);
free
(
p_sys
->
p_header
);
vlc_UrlClean
(
&
p_sys
->
proxy
);
vlc_UrlClean
(
&
p_sys
->
url
);
free
(
p_sys
);
return
VLC_EGENERIC
;
goto
error
;
}
if
(
!
p_sys
->
b_broadcast
)
...
...
@@ -209,6 +196,12 @@ int MMSHOpen( access_t *p_access )
}
return
VLC_SUCCESS
;
error:
vlc_UrlClean
(
&
p_sys
->
proxy
);
vlc_UrlClean
(
&
p_sys
->
url
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
/*****************************************************************************
...
...
@@ -220,7 +213,7 @@ void MMSHClose ( access_t *p_access )
Stop
(
p_access
);
free
(
p_sys
->
p_header
);
free
(
p_sys
->
p_header
);
vlc_UrlClean
(
&
p_sys
->
proxy
);
vlc_UrlClean
(
&
p_sys
->
url
);
...
...
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