Commit 41588461 authored by François Grisez's avatar François Grisez
Browse files

Add more functions to check before loading VideoToolbox's filters

parent fd76ef68
...@@ -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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment