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
e3ae3978
Commit
e3ae3978
authored
Jul 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http: added a mime option.
parent
55d25614
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
modules/access_output/http.c
modules/access_output/http.c
+20
-9
No files found.
modules/access_output/http.c
View file @
e3ae3978
...
...
@@ -49,15 +49,17 @@ static void Close( vlc_object_t * );
#define PASS_TEXT N_("Password")
#define PASS_LONGTEXT N_("Allows you to give a password that will be " \
"requested to access the stream." )
#define MIME_TEXT N_("Mime")
#define MIME_LONGTEXT N_("Allows you to give the mime returned by the server." )
vlc_module_begin
();
set_description
(
_
(
"HTTP stream output"
)
);
set_capability
(
"sout access"
,
0
);
add_shortcut
(
"http"
);
add_shortcut
(
"mmsh"
);
add_string
(
SOUT_CFG_PREFIX
"user"
,
""
,
NULL
,
"User"
,
""
,
VLC_TRUE
);
add_string
(
SOUT_CFG_PREFIX
"pwd"
,
""
,
NULL
,
"Password"
,
""
,
VLC_TRUE
);
add_string
(
SOUT_CFG_PREFIX
"user"
,
""
,
NULL
,
USER_TEXT
,
USER_LONGTEXT
,
VLC_TRUE
);
add_string
(
SOUT_CFG_PREFIX
"pwd"
,
""
,
NULL
,
PASS_TEXT
,
PASS_LONGTEXT
,
VLC_TRUE
);
add_string
(
SOUT_CFG_PREFIX
"mime"
,
""
,
NULL
,
MIME_TEXT
,
MIME_LONGTEXT
,
VLC_TRUE
);
set_callbacks
(
Open
,
Close
);
vlc_module_end
();
...
...
@@ -66,7 +68,7 @@ vlc_module_end();
* Exported prototypes
*****************************************************************************/
static
const
char
*
ppsz_sout_options
[]
=
{
"user"
,
"pwd"
,
NULL
"user"
,
"pwd"
,
"mime"
,
NULL
};
static
int
Write
(
sout_access_out_t
*
,
block_t
*
);
...
...
@@ -180,19 +182,27 @@ static int Open( vlc_object_t *p_this )
if
(
p_access
->
psz_access
&&
!
strcmp
(
p_access
->
psz_access
,
"mmsh"
)
)
{
psz_mime
=
"video/x-ms-asf-stream"
;
psz_mime
=
strdup
(
"video/x-ms-asf-stream"
);
}
else
{
var_Get
(
p_access
,
SOUT_CFG_PREFIX
"mime"
,
&
val
);
if
(
*
val
.
psz_string
)
psz_mime
=
val
.
psz_string
;
else
free
(
val
.
psz_string
);
}
var_Get
(
p_access
,
SOUT_CFG_PREFIX
"user"
,
&
val
);
if
(
val
.
psz_string
&&
*
val
.
psz_string
)
if
(
*
val
.
psz_string
)
psz_user
=
val
.
psz_string
;
else
if
(
val
.
psz_string
)
else
free
(
val
.
psz_string
);
var_Get
(
p_access
,
SOUT_CFG_PREFIX
"pwd"
,
&
val
);
if
(
val
.
psz_string
&&
*
val
.
psz_string
)
if
(
*
val
.
psz_string
)
psz_pwd
=
val
.
psz_string
;
else
if
(
val
.
psz_string
)
else
free
(
val
.
psz_string
);
p_sys
->
p_httpd_stream
=
...
...
@@ -200,6 +210,7 @@ static int Open( vlc_object_t *p_this )
psz_user
,
psz_pwd
);
if
(
psz_user
)
free
(
psz_user
);
if
(
psz_pwd
)
free
(
psz_pwd
);
if
(
psz_mime
)
free
(
psz_mime
);
if
(
p_sys
->
p_httpd_stream
==
NULL
)
{
...
...
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