Skip to content

Commit 7012c58

Browse files
committed
Quirks: Review feedback changes
1 parent d5e1972 commit 7012c58

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,9 @@ GstClockTime MediaPlayerPrivateGStreamer::gstreamerPositionFromSinks() const
13751375
gint64 videoPosition = GST_CLOCK_TIME_NONE;
13761376
gst_query_parse_position(query.get(), 0, &videoPosition);
13771377
GST_TRACE_OBJECT(pipeline(), "Video position %" GST_TIME_FORMAT, GST_TIME_ARGS(videoPosition));
1378-
if (GST_CLOCK_TIME_IS_VALID(videoPosition) && (!GST_CLOCK_TIME_IS_VALID(gstreamerPosition) || (m_playbackRate >= 0 && videoPosition > gstreamerPosition) || (m_playbackRate < 0 && videoPosition < gstreamerPosition)))
1378+
if (GST_CLOCK_TIME_IS_VALID(videoPosition) && (!GST_CLOCK_TIME_IS_VALID(gstreamerPosition)
1379+
|| (m_playbackRate >= 0 && videoPosition > gstreamerPosition)
1380+
|| (m_playbackRate < 0 && videoPosition < gstreamerPosition)))
13791381
gstreamerPosition = videoPosition;
13801382
}
13811383
return static_cast<GstClockTime>(gstreamerPosition);
@@ -3011,8 +3013,7 @@ void MediaPlayerPrivateGStreamer::createGSTPlayBin(const URL& url)
30113013
if (videoSinkPad)
30123014
g_signal_connect(videoSinkPad.get(), "notify::caps", G_CALLBACK(+[](GstPad* videoSinkPad, GParamSpec*, MediaPlayerPrivateGStreamer* player) {
30133015
player->videoSinkCapsChanged(videoSinkPad);
3014-
}),
3015-
this);
3016+
}), this);
30163017
}
30173018

30183019
void MediaPlayerPrivateGStreamer::configureVideoDecoder(GstElement* decoder)

Source/WebCore/platform/gstreamer/GStreamerQuirkAmLogic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ GstElement* GStreamerQuirkAmLogic::createWebAudioSink()
4343
// On Amlogic we need to set direct-mode=false prop before changing state to READY
4444
// but this is not possible with autoaudiosink.
4545
auto sink = makeGStreamerElement("amlhalasink", nullptr);
46-
ASSERT_WITH_MESSAGE(sink, "amlhalasink should be available in the system but it is not");
46+
RELEASE_ASSERT_WITH_MESSAGE(sink, "amlhalasink should be available in the system but it is not");
4747
g_object_set(sink, "direct-mode", FALSE, nullptr);
4848
return sink;
4949
}

Source/WebCore/platform/gstreamer/GStreamerQuirkRealtek.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ GStreamerQuirkRealtek::GStreamerQuirkRealtek()
5050
GstElement* GStreamerQuirkRealtek::createWebAudioSink()
5151
{
5252
auto sink = makeGStreamerElement("rtkaudiosink", nullptr);
53-
ASSERT_WITH_MESSAGE(sink, "rtkaudiosink should be available in the system but it is not");
53+
RELEASE_ASSERT_WITH_MESSAGE(sink, "rtkaudiosink should be available in the system but it is not");
5454
g_object_set(sink, "media-tunnel", FALSE, "audio-service", TRUE, nullptr);
5555
return sink;
5656
}

0 commit comments

Comments
 (0)