Skip to content

Commit

Permalink
REGRESSION(267278@main) [GStreamer] Stable builds broke with missing …
Browse files Browse the repository at this point in the history
…include and guard

https://bugs.webkit.org/show_bug.cgi?id=260719

Reviewed by Philippe Normand.

Add missing include (as expected in non-unified builds) and guard
PlatformRawAudioDataGStreamer with ENABLE(WEB_CODECS).

* Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.cpp:
* Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.h:

Canonical link: https://commits.webkit.org/267292@main
  • Loading branch information
lauromoura committed Aug 25, 2023
1 parent de4f309 commit 98a84f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
#include "config.h"
#include "PlatformRawAudioDataGStreamer.h"

#if USE(GSTREAMER)
#if ENABLE(WEB_CODECS) && USE(GSTREAMER)

#include "AudioSampleFormat.h"
#include "GStreamerCommon.h"
#include "GUniquePtrGStreamer.h"
#include "SharedBuffer.h"
Expand Down Expand Up @@ -230,4 +231,4 @@ void PlatformRawAudioData::copyTo(std::span<uint8_t> destination, AudioSampleFor

#undef GST_CAT_DEFAULT

#endif // USE(GSTREAMER)
#endif // ENABLE(WEB_CODECS) && USE(GSTREAMER)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "PlatformRawAudioData.h"

#if USE(GSTREAMER)
#if ENABLE(WEB_CODECS) && USE(GSTREAMER)

#include "GRefPtrGStreamer.h"
#include <gst/audio/audio.h>
Expand Down Expand Up @@ -56,4 +56,4 @@ class PlatformRawAudioDataGStreamer final : public PlatformRawAudioData {

}

#endif // USE(GSTREAMER)
#endif // ENABLE(WEB_CODECS) && USE(GSTREAMER)

0 comments on commit 98a84f0

Please sign in to comment.