mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
Revert "glmemory: Fix n_wrapped_pointers usage"
This reverts commit b1299c179b
.
This commit is contained in:
parent
ffcab084d5
commit
bccc69fadb
1 changed files with 1 additions and 6 deletions
|
@ -1433,13 +1433,8 @@ gst_gl_memory_setup_buffer (GstGLMemoryAllocator * allocator,
|
||||||
else
|
else
|
||||||
views = 1;
|
views = 1;
|
||||||
|
|
||||||
if (n_wrapped_pointers == views)
|
|
||||||
n_mem = 1;
|
|
||||||
|
|
||||||
/* Sanity check for the code below; there should be as many pointers as the
|
|
||||||
* number of memory we are going to create */
|
|
||||||
g_return_val_if_fail (!wrapped_data
|
g_return_val_if_fail (!wrapped_data
|
||||||
|| n_mem * views == n_wrapped_pointers, FALSE);
|
|| views * n_mem != n_wrapped_pointers, FALSE);
|
||||||
|
|
||||||
for (v = 0; v < views; v++) {
|
for (v = 0; v < views; v++) {
|
||||||
for (i = 0; i < n_mem; i++) {
|
for (i = 0; i < n_mem; i++) {
|
||||||
|
|
Loading…
Reference in a new issue