GStreamerRegistryScannerMSE.cpp [plain text]
#include "config.h"
#include "GStreamerRegistryScannerMSE.h"
#if USE(GSTREAMER) && ENABLE(MEDIA_SOURCE)
#include "RuntimeApplicationChecks.h"
namespace WebCore {
GStreamerRegistryScannerMSE& GStreamerRegistryScannerMSE::singleton()
{
static NeverDestroyed<GStreamerRegistryScannerMSE> sharedInstance;
return sharedInstance;
}
void GStreamerRegistryScannerMSE::getSupportedDecodingTypes(HashSet<String, ASCIICaseInsensitiveHash>& types)
{
if (isInWebProcess())
types = singleton().mimeTypeSet(GStreamerRegistryScanner::Configuration::Decoding);
else
types = GStreamerRegistryScannerMSE().mimeTypeSet(GStreamerRegistryScanner::Configuration::Decoding);
}
GStreamerRegistryScannerMSE::GStreamerRegistryScannerMSE()
: GStreamerRegistryScanner::GStreamerRegistryScanner(true)
{
}
}
#endif