mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
tests:icles: Do not use memmem GNU extension function
As it is not avalaible on windows/msvc and we can use pure GLib for that
This commit is contained in:
parent
a3545637de
commit
7e8fe2844b
1 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,6 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _GNU_SOURCE /* for memmem */
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
@ -209,7 +208,10 @@ test_seek_FORMAT_TIME_by_sample (const gchar * fn, GList * seek_positions)
|
||||||
|
|
||||||
buf = gst_sample_get_buffer (sample);
|
buf = gst_sample_get_buffer (sample);
|
||||||
gst_buffer_map (buf, &map, GST_MAP_READ);
|
gst_buffer_map (buf, &map, GST_MAP_READ);
|
||||||
found = memmem (answer, answer_size, map.data, map.size);
|
if (map.size > answer_size)
|
||||||
|
found = NULL;
|
||||||
|
else
|
||||||
|
found = g_strstr_len (answer, answer_size, (gchar *) map.data);
|
||||||
gst_buffer_unmap (buf, &map);
|
gst_buffer_unmap (buf, &map);
|
||||||
|
|
||||||
g_assert (found != NULL);
|
g_assert (found != NULL);
|
||||||
|
|
Loading…
Reference in a new issue