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
2ff8049f
Commit
2ff8049f
authored
Jul 25, 2015
by
Rémi Denis-Courmont
Browse files
dshow: implement ACCESS_GET_CONTENT_TYPE
parent
fd4af96c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/dshow/dshow.cpp
View file @
2ff8049f
...
...
@@ -1933,6 +1933,21 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
INT64_C
(
1000
)
*
var_InheritInteger
(
p_access
,
"live-caching"
);
break
;
case
ACCESS_GET_CONTENT_TYPE
:
{
dshow_stream_t
*
p_stream
=
p_access
->
p_sys
->
pp_streams
[
0
];
char
**
type
=
va_arg
(
args
,
char
**
);
/* Check if we need to force demuxers */
if
(
p_stream
->
i_fourcc
==
VLC_CODEC_DV
)
*
type
=
strdup
(
"video/dv"
);
else
if
(
p_stream
->
i_fourcc
==
VLC_CODEC_MPGV
)
*
type
=
strdup
(
"video/mpeg"
);
else
return
VLC_EGENERIC
;
break
;
}
default:
return
VLC_EGENERIC
;
}
...
...
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