From 27cb39b028603bddbacaadbcf35812eecb31b5ab Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 22 May 2009 21:27:58 -0700 Subject: [PATCH] schro: Fix usage of adapter_masked_scan_uint32 Because *somebody* changed the API without telling me. --- ext/schroedinger/gstschrodec.c | 2 +- ext/schroedinger/gstschroparse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/schroedinger/gstschrodec.c b/ext/schroedinger/gstschrodec.c index 09638c9..1dcca7a 100644 --- a/ext/schroedinger/gstschrodec.c +++ b/ext/schroedinger/gstschrodec.c @@ -558,7 +558,7 @@ gst_schro_dec_scan_for_sync (GstBaseVideoDecoder * base_video_decoder, n_available -= 3; - return gst_adapter_masked_scan_uint32 (adapter, 0x42424344, 0xffffffff, + return gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x42424344, offset, MIN (n, n_available - 3)); } diff --git a/ext/schroedinger/gstschroparse.c b/ext/schroedinger/gstschroparse.c index 3e7cc45..d368a52 100644 --- a/ext/schroedinger/gstschroparse.c +++ b/ext/schroedinger/gstschroparse.c @@ -311,7 +311,7 @@ gst_schro_parse_scan_for_sync (GstAdapter * adapter, gboolean at_eos, n_available -= 3; - return gst_adapter_masked_scan_uint32 (adapter, 0x42424344, 0xffffffff, + return gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x42424344, offset, MIN (n, n_available - 3)); } -- 2.7.4