mirror of
https://github.com/openwrt/video.git
synced 2025-12-21 17:04:37 +04:00
48 lines
1.4 KiB
Diff
48 lines
1.4 KiB
Diff
--- a/Source/WebCore/platform/graphics/gstreamer/mse/MediaSourcePrivateGStreamer.cpp
|
|
+++ b/Source/WebCore/platform/graphics/gstreamer/mse/MediaSourcePrivateGStreamer.cpp
|
|
@@ -216,6 +216,7 @@ void MediaSourcePrivateGStreamer::startP
|
|
player->startSource(tracks);
|
|
}
|
|
|
|
+#if !RELEASE_LOG_DISABLED
|
|
TrackID MediaSourcePrivateGStreamer::registerTrackId(TrackID preferredId)
|
|
{
|
|
ASSERT(isMainThread());
|
|
@@ -255,6 +256,7 @@ bool MediaSourcePrivateGStreamer::unregi
|
|
|
|
return res;
|
|
}
|
|
+#endif
|
|
|
|
void MediaSourcePrivateGStreamer::notifyActiveSourceBuffersChanged()
|
|
{
|
|
--- a/Source/WebCore/platform/graphics/gstreamer/mse/SourceBufferPrivateGStreamer.cpp
|
|
+++ b/Source/WebCore/platform/graphics/gstreamer/mse/SourceBufferPrivateGStreamer.cpp
|
|
@@ -283,6 +283,7 @@ WTFLogChannel& SourceBufferPrivateGStrea
|
|
}
|
|
#endif
|
|
|
|
+#if !RELEASE_LOG_DISABLED
|
|
std::optional<TrackID> SourceBufferPrivateGStreamer::tryRegisterTrackId(TrackID preferredId)
|
|
{
|
|
ASSERT(isMainThread());
|
|
@@ -304,6 +305,18 @@ bool SourceBufferPrivateGStreamer::tryUn
|
|
|
|
return downcast<MediaSourcePrivateGStreamer>(mediaSource)->unregisterTrackId(trackId);
|
|
}
|
|
+#else
|
|
+std::optional<TrackID> SourceBufferPrivateGStreamer::tryRegisterTrackId(TrackID preferredId)
|
|
+{
|
|
+ return std::nullopt;
|
|
+}
|
|
+
|
|
+bool SourceBufferPrivateGStreamer::tryUnregisterTrackId(TrackID trackId)
|
|
+{
|
|
+ return false;
|
|
+}
|
|
+#endif
|
|
+
|
|
|
|
size_t SourceBufferPrivateGStreamer::platformMaximumBufferSize() const
|
|
{
|