MediaCapture: Warning fix

This commit is contained in:
Stenzek 2024-08-11 23:46:44 +10:00
parent af47eb6956
commit 62eb557832
No known key found for this signature in database
3 changed files with 13 additions and 12 deletions

View file

@ -86,7 +86,7 @@ float SettingInfo::FloatStepValue() const
#if defined(_WIN32)
const MediaCaptureBackend Settings::DEFAULT_MEDIA_CAPTURE_BACKEND = MediaCaptureBackend::MediaFoundation;
#elif !defined(__ANDROID__)
const MediaCaptureBackend Settings::DEFAULT_MEDIA_CAPTURE_BACKEND = MediaCaptureBackend::FFMPEG;
const MediaCaptureBackend Settings::DEFAULT_MEDIA_CAPTURE_BACKEND = MediaCaptureBackend::FFmpeg;
#endif
Settings::Settings()

View file

@ -621,9 +621,9 @@ struct MediaFoundationCodec
bool require_hardware;
};
static constexpr const MediaFoundationCodec s_media_foundation_audio_codecs[] = {
{"aac", "Advanced Audio Coding", MFAudioFormat_AAC},
{"mp3", "MPEG-2 Audio Layer III", MFAudioFormat_MP3},
{"pcm", "Uncompressed PCM", MFAudioFormat_PCM},
{"aac", "Advanced Audio Coding", MFAudioFormat_AAC, false},
{"mp3", "MPEG-2 Audio Layer III", MFAudioFormat_MP3, false},
{"pcm", "Uncompressed PCM", MFAudioFormat_PCM, false},
};
static constexpr const MediaFoundationCodec s_media_foundation_video_codecs[] = {
{"h264", "H.264 with Software Encoding", MFVideoFormat_H264, false},
@ -1609,8 +1609,8 @@ MediaCapture::ContainerList MediaCapture::GetContainerList(MediaCaptureBackend b
break;
#endif
#ifndef __ANDROID__
case MediaCaptureBackend::FFMPEG:
// ret = MediaCaptureFFMPEG::GetContainerList();
case MediaCaptureBackend::FFmpeg:
// ret = MediaCaptureFFmpeg::GetContainerList();
break;
#endif
default:
@ -1630,8 +1630,8 @@ MediaCapture::CodecList MediaCapture::GetVideoCodecList(MediaCaptureBackend back
break;
#endif
#ifndef __ANDROID__
case MediaCaptureBackend::FFMPEG:
// ret = MediaCaptureFFMPEG::GetVideoCodecList(container);
case MediaCaptureBackend::FFmpeg:
// ret = MediaCaptureFFmpeg::GetVideoCodecList(container);
break;
#endif
default:
@ -1651,8 +1651,8 @@ MediaCapture::CodecList MediaCapture::GetAudioCodecList(MediaCaptureBackend back
break;
#endif
#ifndef __ANDROID__
case MediaCaptureBackend::FFMPEG:
// ret = MediaCaptureFFMPEG::GetAudioCodecList(container);
case MediaCaptureBackend::FFmpeg:
// ret = MediaCaptureFFmpeg::GetAudioCodecList(container);
break;
#endif
default:
@ -1670,7 +1670,8 @@ std::unique_ptr<MediaCapture> MediaCapture::Create(MediaCaptureBackend backend,
return MediaCaptureMF::Create(error);
#endif
#ifndef __ANDROID__
case MediaCaptureBackend::FFMPEG:
case MediaCaptureBackend::FFmpeg:
// return MediaCaptureFFmpeg::Create(error);
return nullptr;
#endif
default:

View file

@ -20,7 +20,7 @@ enum class MediaCaptureBackend : u8
MediaFoundation,
#endif
#ifndef __ANDROID__
FFMPEG,
FFmpeg,
#endif
MaxCount,
};