Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
d8fc0a94
Commit
d8fc0a94
authored
Oct 02, 2007
by
Rémi Denis-Courmont
Browse files
Export Content-Type out of HTTP access using Control.
parent
100c9257
Changes
19
Hide whitespace changes
Inline
Side-by-side
include/vlc_access.h
View file @
d8fc0a94
...
...
@@ -62,7 +62,9 @@ enum access_query_e
* XXX: avoid to use it unless you can't */
ACCESS_SET_PRIVATE_ID_STATE
,
/* arg1= int i_private_data, vlc_bool_t b_selected can fail */
ACCESS_SET_PRIVATE_ID_CA
,
/* arg1= int i_program_number, uint16_t i_vpid, uint16_t i_apid1, uint16_t i_apid2, uint16_t i_apid3, uint8_t i_length, uint8_t *p_data */
ACCESS_GET_PRIVATE_ID_STATE
/* arg1=int i_private_data arg2=vlc_bool_t * res=can fail */
ACCESS_GET_PRIVATE_ID_STATE
,
/* arg1=int i_private_data arg2=vlc_bool_t * res=can fail */
ACCESS_GET_CONTENT_TYPE
,
/* arg1=char **ppsz_content_type */
};
struct
access_t
...
...
@@ -132,6 +134,14 @@ static inline int access2_Control( access_t *p_access, int i_query, ... )
return
i_result
;
}
static
inline
char
*
access_GetContentType
(
access_t
*
p_access
)
{
char
*
res
;
if
(
access2_Control
(
p_access
,
ACCESS_GET_CONTENT_TYPE
,
&
res
)
)
return
NULL
;
return
res
;
}
static
inline
void
access_InitFields
(
access_t
*
p_a
)
{
p_a
->
info
.
i_update
=
0
;
...
...
modules/access/bda/bda.c
View file @
d8fc0a94
...
...
@@ -519,6 +519,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_PAUSE_STATE
:
/* 8 */
case
ACCESS_SET_TITLE
:
/* 9 */
case
ACCESS_SET_SEEKPOINT
:
/* 10 */
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
case
ACCESS_SET_PRIVATE_ID_STATE
:
/* 11 */
...
...
modules/access/cdda.c
View file @
d8fc0a94
...
...
@@ -380,6 +380,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_META
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/directory.c
View file @
d8fc0a94
...
...
@@ -301,6 +301,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/dv.c
View file @
d8fc0a94
...
...
@@ -319,6 +319,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/dvb/access.c
View file @
d8fc0a94
...
...
@@ -542,6 +542,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_TITLE_INFO
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
case
ACCESS_SET_PRIVATE_ID_STATE
:
...
...
modules/access/eyetv.c
View file @
d8fc0a94
...
...
@@ -305,6 +305,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case ACCESS_SET_TITLE:
case ACCESS_SET_SEEKPOINT:
case ACCESS_SET_PRIVATE_ID_STATE:
case ACCESS_GET_CONTENT_TYPE:
return VLC_EGENERIC;
default:
...
...
modules/access/file.c
View file @
d8fc0a94
...
...
@@ -382,6 +382,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_META
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/ftp.c
View file @
d8fc0a94
...
...
@@ -557,6 +557,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/gnomevfs.c
View file @
d8fc0a94
...
...
@@ -412,6 +412,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_META
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/http.c
View file @
d8fc0a94
...
...
@@ -746,6 +746,11 @@ static int Control( access_t *p_access, int i_query, va_list args )
vlc_meta_Set
(
p_meta
,
vlc_meta_NowPlaying
,
p_sys
->
psz_icy_title
);
break
;
case
ACCESS_GET_CONTENT_TYPE
:
*
va_arg
(
args
,
char
**
)
=
p_sys
->
psz_mime
?
strdup
(
p_sys
->
psz_mime
)
:
NULL
;
break
;
case
ACCESS_GET_TITLE_INFO
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
...
...
modules/access/mms/mmsh.c
View file @
d8fc0a94
...
...
@@ -283,6 +283,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/mms/mmstu.c
View file @
d8fc0a94
...
...
@@ -268,6 +268,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
...
...
modules/access/pvr.c
View file @
d8fc0a94
...
...
@@ -1149,6 +1149,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/rtsp/access.c
View file @
d8fc0a94
...
...
@@ -350,6 +350,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_META
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/smb.c
View file @
d8fc0a94
...
...
@@ -418,6 +418,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/tcp.c
View file @
d8fc0a94
...
...
@@ -196,6 +196,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/udp.c
View file @
d8fc0a94
...
...
@@ -308,6 +308,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
modules/access/vcd/vcd.c
View file @
d8fc0a94
...
...
@@ -314,6 +314,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
}
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
default:
...
...
Write
Preview
Supports
Markdown
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