Make H.264 codec optional during runtime
It's possible that FreeRDP was built against FFmpeg, but it doesn't support H.264. In that case, just continue without H.264 support instead of failing hard before even trying to connect. This is especially useful for Linux distributions which can't ship H.264 support in FFmpeg out of the box (patent issues), but allow enabling H.264 later by installing a version of FFmpeg which has it enabled.
This commit is contained in:
parent
7adf2f0bbd
commit
10ee86527a
@ -142,10 +142,7 @@ BOOL freerdp_client_codecs_prepare(rdpCodecs* codecs, UINT32 flags, UINT32 width
|
||||
{
|
||||
if (!(codecs->h264 = h264_context_new(FALSE)))
|
||||
{
|
||||
WLog_ERR(TAG, "Failed to create h264 codec context");
|
||||
#ifndef WITH_OPENH264_LOADING
|
||||
return FALSE;
|
||||
#endif
|
||||
WLog_WARN(TAG, "Failed to create h264 codec context");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user