mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
decklinkvideosink: less-than-zero comparison of an unsigned value is never true
Use the correct type, GstClockTimeDiff, instead. CID 1323742
This commit is contained in:
parent
38d360675c
commit
b2149e7bb4
1 changed files with 3 additions and 2 deletions
|
@ -438,7 +438,8 @@ gst_decklink_video_sink_prepare (GstBaseSink * bsink, GstBuffer * buffer)
|
||||||
HRESULT ret;
|
HRESULT ret;
|
||||||
GstClockTime timestamp, duration;
|
GstClockTime timestamp, duration;
|
||||||
GstClockTime running_time, running_time_duration;
|
GstClockTime running_time, running_time_duration;
|
||||||
GstClockTime latency, render_delay, ts_offset;
|
GstClockTime latency, render_delay;
|
||||||
|
GstClockTimeDiff ts_offset;
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (self, "Preparing buffer %p", buffer);
|
GST_DEBUG_OBJECT (self, "Preparing buffer %p", buffer);
|
||||||
|
@ -471,7 +472,7 @@ gst_decklink_video_sink_prepare (GstBaseSink * bsink, GstBuffer * buffer)
|
||||||
|
|
||||||
if (ts_offset < 0) {
|
if (ts_offset < 0) {
|
||||||
ts_offset = -ts_offset;
|
ts_offset = -ts_offset;
|
||||||
if (ts_offset < running_time)
|
if ((GstClockTime) ts_offset < running_time)
|
||||||
running_time -= ts_offset;
|
running_time -= ts_offset;
|
||||||
else
|
else
|
||||||
running_time = 0;
|
running_time = 0;
|
||||||
|
|
Loading…
Reference in a new issue