Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2ff8049f
Commit
2ff8049f
authored
Jul 25, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dshow: implement ACCESS_GET_CONTENT_TYPE
parent
fd4af96c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+15
-0
No files found.
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 )
...
@@ -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"
);
INT64_C
(
1000
)
*
var_InheritInteger
(
p_access
,
"live-caching"
);
break
;
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:
default:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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