projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a770d7a
)
shm: Use the right counter when freeing buffers
author
Olivier Crête
<olivier.crete@collabora.co.uk>
Fri, 22 Oct 2010 23:22:43 +0000
(
01:22
+0200)
committer
Olivier Crête
<olivier.crete@collabora.co.uk>
Thu, 25 Nov 2010 00:12:10 +0000
(19:12 -0500)
sys/shm/shmpipe.c
patch
|
blob
|
history
diff --git
a/sys/shm/shmpipe.c
b/sys/shm/shmpipe.c
index
9f05f1a
..
40bd18f
100644
(file)
--- a/
sys/shm/shmpipe.c
+++ b/
sys/shm/shmpipe.c
@@
-548,7
+548,7
@@
sp_writer_send_buf (ShmPipe * self, char *buf, size_t size)
}
if (c == 0) {
- spalloc_free1 (sizeof (ShmBuffer) + sizeof (int) * s
elf
->num_clients, sb);
+ spalloc_free1 (sizeof (ShmBuffer) + sizeof (int) * s
b
->num_clients, sb);
return 0;
}
@@
-784,7
+784,7
@@
sp_shmbuf_dec (ShmPipe * self, ShmBuffer * buf, ShmBuffer * prev_buf)
shm_alloc_space_block_dec (buf->ablock);
sp_shm_area_dec (self, buf->shm_area);
- spalloc_free1 (sizeof (ShmBuffer) + sizeof (int) *
buf
->num_clients, buf);
+ spalloc_free1 (sizeof (ShmBuffer) + sizeof (int) *
sb
->num_clients, buf);
return 0;
}