mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
msesourcebuffer: Fix unsigned value handling
Use the explicit valid clocktime handler instead Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8286>
This commit is contained in:
parent
2f1f44cdc7
commit
efbe1e96ca
2 changed files with 3 additions and 3 deletions
|
@ -903,7 +903,7 @@ ignored.
|
|||
<type name="SourceBuffer" c:type="GstSourceBuffer*"/>
|
||||
</instance-parameter>
|
||||
<parameter name="start" transfer-ownership="none">
|
||||
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/mse/gstsourcebuffer.c">the append window end</doc>
|
||||
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/mse/gstsourcebuffer.c">the append window start</doc>
|
||||
<type name="Gst.ClockTime" c:type="GstClockTime"/>
|
||||
</parameter>
|
||||
</parameters>
|
||||
|
|
|
@ -1082,7 +1082,7 @@ gst_source_buffer_get_append_window_start (GstSourceBuffer * self)
|
|||
/**
|
||||
* gst_source_buffer_set_append_window_start:
|
||||
* @self: #GstSourceBuffer instance
|
||||
* @start: the append window end
|
||||
* @start: the append window start
|
||||
* @error: (out) (optional) (nullable) (transfer full): the resulting error or `NULL`
|
||||
*
|
||||
* Modifies the current append window start of @self. If successful, samples
|
||||
|
@ -1115,7 +1115,7 @@ gst_source_buffer_set_append_window_start (GstSourceBuffer * self,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (start < 0 || start <= self->append_window_end) {
|
||||
if (!GST_CLOCK_TIME_IS_VALID (start) || start <= self->append_window_end) {
|
||||
g_set_error (error,
|
||||
GST_MEDIA_SOURCE_ERROR, GST_MEDIA_SOURCE_ERROR_TYPE,
|
||||
"append window start must be between zero and append window end");
|
||||
|
|
Loading…
Reference in a new issue