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
a82861ea
Commit
a82861ea
authored
May 04, 2016
by
François Grisez
Browse files
Prevents VideoToolbox filter from being registerd on iOS simulators
parent
237432b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/videofilters/videotoolbox.c
src/videofilters/videotoolbox.c
+8
-2
No files found.
src/videofilters/videotoolbox.c
View file @
a82861ea
...
...
@@ -832,6 +832,10 @@ MSFilterDesc ms_vt_h264_dec = {
};
void
_register_videotoolbox_if_supported
(
MSFactory
*
factory
)
{
#if TARGET_OS_SIMULATOR
ms_warning
(
"VideoToolbox H264 codec is not supported on simulators"
);
#else
#ifdef __ios
if
(
kCFCoreFoundationVersionNumber
>=
kCFCoreFoundationVersionNumber_iOS_8_0
)
{
#else
...
...
@@ -841,9 +845,11 @@ void _register_videotoolbox_if_supported(MSFactory *factory) {
ms_factory_register_filter
(
factory
,
&
ms_vt_h264_enc
);
ms_factory_register_filter
(
factory
,
&
ms_vt_h264_dec
);
}
else
{
ms_warning
(
"Cannot register VideoToolbox H264 codec. That"
"
requires iOS 8 or MacOSX 10.8"
);
ms_warning
(
"Cannot register VideoToolbox H264 codec. That
"
"requires iOS 8 or MacOSX 10.8"
);
}
#endif
}
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