adapter: return gssize from gst_adapter_masked_scan_* functions
authorThijs Vermeir <thijsvermeir@gmail.com>
Sun, 30 Dec 2012 22:35:48 +0000 (23:35 +0100)
committerThijs Vermeir <thijsvermeir@gmail.com>
Wed, 2 Jan 2013 09:40:38 +0000 (10:40 +0100)
As the return value of this function is -1 when the match is not found

libs/gst/base/gstadapter.c
libs/gst/base/gstadapter.h

index 325dfaf..74bcee0 100644 (file)
@@ -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)
 {
index 2a9ce24..ce5b6ca 100644 (file)
@@ -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