Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
41588461
Commit
41588461
authored
Mar 09, 2016
by
François Grisez
Browse files
Add more functions to check before loading VideoToolbox's filters
parent
fd76ef68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/videofilters/videotoolbox.c
src/videofilters/videotoolbox.c
+4
-1
No files found.
src/videofilters/videotoolbox.c
View file @
41588461
...
@@ -784,7 +784,10 @@ MSFilterDesc ms_vt_h264_dec = {
...
@@ -784,7 +784,10 @@ MSFilterDesc ms_vt_h264_dec = {
};
};
void
_register_videotoolbox_if_supported
(
MSFactory
*
factory
)
{
void
_register_videotoolbox_if_supported
(
MSFactory
*
factory
)
{
if
(
VTCompressionSessionCreate
!=
NULL
)
{
if
(
VTCompressionSessionCreate
&&
VTDecompressionSessionCreate
&&
CMVideoFormatDescriptionCreateFromH264ParameterSets
)
{
ms_factory_register_filter
(
factory
,
&
ms_vt_h264_enc
);
ms_factory_register_filter
(
factory
,
&
ms_vt_h264_enc
);
ms_factory_register_filter
(
factory
,
&
ms_vt_h264_dec
);
ms_factory_register_filter
(
factory
,
&
ms_vt_h264_dec
);
}
}
...
...
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