tests: update netbuffer and tag tests for gst_buffer_take_memory() API change

This commit is contained in:
Tim-Philipp Müller 2011-07-06 12:54:40 +01:00
parent f55f7efa7e
commit b1dcdb89f5
2 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ GST_START_TEST (test_netbuffer_copy)
gst_netaddress_set_ip4_address (&meta->naddr, ipv4_addr, ipv4_port);
len = strlen (DATA_STRING);
gst_buffer_take_memory (netbuf,
gst_buffer_take_memory (netbuf, -1,
gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY,
(gpointer) DATA_STRING, NULL, len, 0, len));
@ -88,7 +88,7 @@ GST_START_TEST (test_netbuffer_copy)
gst_netaddress_set_ip6_address (&meta->naddr, ipv6_addr, ipv6_port);
len = strlen (DATA_STRING);
gst_buffer_take_memory (netbuf,
gst_buffer_take_memory (netbuf, -1,
gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY,
(gpointer) DATA_STRING, NULL, len, 0, len));

View file

@ -444,7 +444,7 @@ GST_START_TEST (test_vorbis_tags)
gchar *vendor = NULL;
buf = gst_buffer_new ();
gst_buffer_take_memory (buf,
gst_buffer_take_memory (buf, -1,
gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY,
(gpointer) speex_comments_buf1, NULL,
sizeof (speex_comments_buf1), 0, sizeof (speex_comments_buf1)));
@ -489,7 +489,7 @@ GST_START_TEST (test_vorbis_tags)
gchar *vendor = NULL;
buf = gst_buffer_new ();
gst_buffer_take_memory (buf,
gst_buffer_take_memory (buf, -1,
gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY,
(gpointer) vorbis_comments_buf, NULL,
sizeof (vorbis_comments_buf), 0, sizeof (vorbis_comments_buf)));
@ -835,7 +835,7 @@ GST_START_TEST (test_xmp_parsing)
buf = gst_buffer_new ();
len = strlen (text) + 1;
gst_buffer_take_memory (buf,
gst_buffer_take_memory (buf, -1,
gst_memory_new_wrapped (0, text, NULL, len, 0, len));
list = gst_tag_list_from_xmp_buffer (buf);