mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
adapter: return gssize from gst_adapter_masked_scan_* functions
As the return value of this function is -1 when the match is not found
This commit is contained in:
parent
c859a1719c
commit
67fab5eaa5
2 changed files with 4 additions and 4 deletions
|
@ -964,7 +964,7 @@ gst_adapter_prev_dts (GstAdapter * adapter, guint64 * distance)
|
|||
*
|
||||
* Returns: offset of the first match, or -1 if no match was found.
|
||||
*/
|
||||
gsize
|
||||
gssize
|
||||
gst_adapter_masked_scan_uint32_peek (GstAdapter * adapter, guint32 mask,
|
||||
guint32 pattern, gsize offset, gsize size, guint32 * value)
|
||||
{
|
||||
|
@ -1099,7 +1099,7 @@ gst_adapter_masked_scan_uint32_peek (GstAdapter * adapter, guint32 mask,
|
|||
* // -> returns -1
|
||||
* </programlisting>
|
||||
*/
|
||||
gsize
|
||||
gssize
|
||||
gst_adapter_masked_scan_uint32 (GstAdapter * adapter, guint32 mask,
|
||||
guint32 pattern, gsize offset, gsize size)
|
||||
{
|
||||
|
|
|
@ -66,10 +66,10 @@ gsize gst_adapter_available_fast (GstAdapter *adapter);
|
|||
GstClockTime gst_adapter_prev_pts (GstAdapter *adapter, guint64 *distance);
|
||||
GstClockTime gst_adapter_prev_dts (GstAdapter *adapter, guint64 *distance);
|
||||
|
||||
gsize gst_adapter_masked_scan_uint32 (GstAdapter * adapter, guint32 mask,
|
||||
gssize gst_adapter_masked_scan_uint32 (GstAdapter * adapter, guint32 mask,
|
||||
guint32 pattern, gsize offset, gsize size);
|
||||
|
||||
gsize gst_adapter_masked_scan_uint32_peek (GstAdapter * adapter, guint32 mask,
|
||||
gssize gst_adapter_masked_scan_uint32_peek (GstAdapter * adapter, guint32 mask,
|
||||
guint32 pattern, gsize offset, gsize size, guint32 * value);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
Loading…
Reference in a new issue