mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
tests: fix more tests
This commit is contained in:
parent
56eb65babc
commit
8f2ef99b5b
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue