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
@ -903,7 +903,7 @@ ignored.
|
|||||||
<type name="SourceBuffer" c:type="GstSourceBuffer*"/>
|
<type name="SourceBuffer" c:type="GstSourceBuffer*"/>
|
||||||
</instance-parameter>
|
</instance-parameter>
|
||||||
<parameter name="start" transfer-ownership="none">
|
<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"/>
|
<type name="Gst.ClockTime" c:type="GstClockTime"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
@ -1082,7 +1082,7 @@ gst_source_buffer_get_append_window_start (GstSourceBuffer * self)
|
|||||||
/**
|
/**
|
||||||
* gst_source_buffer_set_append_window_start:
|
* gst_source_buffer_set_append_window_start:
|
||||||
* @self: #GstSourceBuffer instance
|
* @self: #GstSourceBuffer instance
|
||||||
* @start: the append window end
|
* @start: the append window start
|
||||||
* @error: (out) (optional) (nullable) (transfer full): the resulting error or `NULL`
|
* @error: (out) (optional) (nullable) (transfer full): the resulting error or `NULL`
|
||||||
*
|
*
|
||||||
* Modifies the current append window start of @self. If successful, samples
|
* 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;
|
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,
|
g_set_error (error,
|
||||||
GST_MEDIA_SOURCE_ERROR, GST_MEDIA_SOURCE_ERROR_TYPE,
|
GST_MEDIA_SOURCE_ERROR, GST_MEDIA_SOURCE_ERROR_TYPE,
|
||||||
"append window start must be between zero and append window end");
|
"append window start must be between zero and append window end");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user