Skip to content

Commit

Permalink
wip: do not set immediate-output=TRUE on westerossink
Browse files Browse the repository at this point in the history
  • Loading branch information
cadubentzen committed Aug 30, 2024
1 parent 06c498c commit 6fe795e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions Source/WebCore/platform/gstreamer/GStreamerQuirkWesteros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ GStreamerQuirkWesteros::GStreamerQuirkWesteros()
}
}

void GStreamerQuirkWesteros::configureElement(GstElement* element, const OptionSet<ElementRuntimeCharacteristics>& characteristics)
{
if (!characteristics.contains(ElementRuntimeCharacteristics::IsMediaStream))
return;

if (!g_strcmp0(G_OBJECT_TYPE_NAME(G_OBJECT(element)), "GstWesterosSink") && gstObjectHasProperty(element, "immediate-output")) {
GST_INFO("Enable 'immediate-output' in WesterosSink");
g_object_set(element, "immediate-output", TRUE, nullptr);
}
}

std::optional<bool> GStreamerQuirkWesteros::isHardwareAccelerated(GstElementFactory* factory)
{
if (g_str_has_prefix(GST_OBJECT_NAME(factory), "westeros"))
Expand Down
1 change: 0 additions & 1 deletion Source/WebCore/platform/gstreamer/GStreamerQuirkWesteros.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class GStreamerQuirkWesteros final : public GStreamerQuirk {
GStreamerQuirkWesteros();
const char* identifier() final { return "Westeros"; }

void configureElement(GstElement*, const OptionSet<ElementRuntimeCharacteristics>&) final;
std::optional<bool> isHardwareAccelerated(GstElementFactory*) final;

private:
Expand Down

0 comments on commit 6fe795e

Please sign in to comment.