[vlc-devel] commit: Rework aout_buffer_t layout ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Sep 7 22:59:07 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Sep 7 23:53:55 2009 +0300| [1e7fcc5da42aaa9728343d73934d7020bc87bf2b] | committer: Rémi Denis-Courmont
Rework aout_buffer_t layout
* 12 bytes saved on 32-bits platforms,
* 32 bytes saved on 64-bits platforms.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e7fcc5da42aaa9728343d73934d7020bc87bf2b
---
include/vlc_aout.h | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/include/vlc_aout.h b/include/vlc_aout.h
index cdae6d4..5d1f0f0 100644
--- a/include/vlc_aout.h
+++ b/include/vlc_aout.h
@@ -129,22 +129,15 @@ typedef int32_t vlc_fixed_t;
struct aout_buffer_t
{
uint8_t * p_buffer;
- bool b_alloc;
/* i_size is the real size of the buffer (used for debug ONLY), i_nb_bytes
* is the number of significative bytes in it. */
size_t i_size, i_nb_bytes;
unsigned int i_nb_samples;
- mtime_t start_date, end_date;
+ bool b_alloc;
bool b_discontinuity; /* Set on discontinuity (for non pcm stream) */
+ mtime_t start_date, end_date;
struct aout_buffer_t * p_next;
-
- /** Private data (aout_buffer_t will disappear soon so no need for an
- * aout_buffer_sys_t type) */
- void * p_sys;
-
- /** This way the release can be overloaded */
- void (*pf_release)( aout_buffer_t * );
};
static inline void aout_BufferFree( aout_buffer_t *buffer )
More information about the vlc-devel
mailing list