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
d8fc0a94
Commit
d8fc0a94
authored
Oct 02, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export Content-Type out of HTTP access using Control.
parent
100c9257
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
33 additions
and
1 deletion
+33
-1
include/vlc_access.h
include/vlc_access.h
+11
-1
modules/access/bda/bda.c
modules/access/bda/bda.c
+1
-0
modules/access/cdda.c
modules/access/cdda.c
+1
-0
modules/access/directory.c
modules/access/directory.c
+1
-0
modules/access/dv.c
modules/access/dv.c
+1
-0
modules/access/dvb/access.c
modules/access/dvb/access.c
+1
-0
modules/access/eyetv.c
modules/access/eyetv.c
+1
-0
modules/access/file.c
modules/access/file.c
+1
-0
modules/access/ftp.c
modules/access/ftp.c
+1
-0
modules/access/gnomevfs.c
modules/access/gnomevfs.c
+1
-0
modules/access/http.c
modules/access/http.c
+5
-0
modules/access/mms/mmsh.c
modules/access/mms/mmsh.c
+1
-0
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+1
-0
modules/access/pvr.c
modules/access/pvr.c
+1
-0
modules/access/rtsp/access.c
modules/access/rtsp/access.c
+1
-0
modules/access/smb.c
modules/access/smb.c
+1
-0
modules/access/tcp.c
modules/access/tcp.c
+1
-0
modules/access/udp.c
modules/access/udp.c
+1
-0
modules/access/vcd/vcd.c
modules/access/vcd/vcd.c
+1
-0
No files found.
include/vlc_access.h
View file @
d8fc0a94
...
@@ -62,7 +62,9 @@ enum access_query_e
...
@@ -62,7 +62,9 @@ enum access_query_e
* XXX: avoid to use it unless you can't */
* 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_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_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
struct
access_t
...
@@ -132,6 +134,14 @@ static inline int access2_Control( access_t *p_access, int i_query, ... )
...
@@ -132,6 +134,14 @@ static inline int access2_Control( access_t *p_access, int i_query, ... )
return
i_result
;
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
)
static
inline
void
access_InitFields
(
access_t
*
p_a
)
{
{
p_a
->
info
.
i_update
=
0
;
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 )
...
@@ -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_PAUSE_STATE
:
/* 8 */
case
ACCESS_SET_TITLE
:
/* 9 */
case
ACCESS_SET_TITLE
:
/* 9 */
case
ACCESS_SET_SEEKPOINT
:
/* 10 */
case
ACCESS_SET_SEEKPOINT
:
/* 10 */
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
case
ACCESS_SET_PRIVATE_ID_STATE
:
/* 11 */
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 )
...
@@ -380,6 +380,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_META
:
case
ACCESS_GET_META
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -301,6 +301,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -319,6 +319,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -542,6 +542,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_TITLE_INFO
:
case
ACCESS_GET_TITLE_INFO
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
case
ACCESS_SET_PRIVATE_ID_STATE
:
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 )
...
@@ -305,6 +305,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case ACCESS_SET_TITLE:
case ACCESS_SET_TITLE:
case ACCESS_SET_SEEKPOINT:
case ACCESS_SET_SEEKPOINT:
case ACCESS_SET_PRIVATE_ID_STATE:
case ACCESS_SET_PRIVATE_ID_STATE:
case ACCESS_GET_CONTENT_TYPE:
return VLC_EGENERIC;
return VLC_EGENERIC;
default:
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 )
...
@@ -382,6 +382,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_META
:
case
ACCESS_GET_META
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -557,6 +557,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -412,6 +412,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_META
:
case
ACCESS_GET_META
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -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
);
vlc_meta_Set
(
p_meta
,
vlc_meta_NowPlaying
,
p_sys
->
psz_icy_title
);
break
;
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_GET_TITLE_INFO
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
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 )
...
@@ -283,6 +283,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -268,6 +268,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
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 )
...
@@ -1149,6 +1149,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -350,6 +350,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_META
:
case
ACCESS_GET_META
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -418,6 +418,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -196,6 +196,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -308,6 +308,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_SEEKPOINT
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
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 )
...
@@ -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_SET_PRIVATE_ID_STATE
:
case
ACCESS_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
default:
default:
...
...
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