tests: fix more tests

This commit is contained in:
Wim Taymans 2012-02-03 17:23:48 +01:00
parent 56eb65babc
commit 8f2ef99b5b

View file

@ -125,7 +125,10 @@ buffer_new (const gchar * buffer_data, guint size)
data = g_malloc (size);
memcpy (data, buffer_data, size);
buffer = gst_buffer_new_wrapped (data, size);
if (data)
buffer = gst_buffer_new_wrapped (data, size);
else
buffer = gst_buffer_new ();
return buffer;
}