[vlc-commits] commit: Fix constness (Pierre Ynard )
git at videolan.org
git at videolan.org
Sun Nov 14 11:59:12 CET 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Nov 14 11:58:01 2010 +0100| [8de0803830d33aeb3c5cbca98cb6e94f16aacc1d] | committer: Pierre Ynard
Fix constness
Partially reverts f3f203e5fd90f74850ffd0663e90e3f30cc05a29
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8de0803830d33aeb3c5cbca98cb6e94f16aacc1d
---
modules/demux/xiph.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/xiph.h b/modules/demux/xiph.h
index 24e4ca9..9c92906 100644
--- a/modules/demux/xiph.h
+++ b/modules/demux/xiph.h
@@ -117,7 +117,7 @@ static inline int xiph_PackHeaders(int *extra_size, void **extra,
}
static inline int xiph_AppendHeaders(int *extra_size, void **extra,
- unsigned size, void *data)
+ unsigned size, const void *data)
{
unsigned packet_size[XIPH_MAX_HEADER_COUNT];
void *packet[XIPH_MAX_HEADER_COUNT];
@@ -134,7 +134,7 @@ static inline int xiph_AppendHeaders(int *extra_size, void **extra,
free(*extra);
packet_size[count] = size;
- packet[count] = data;
+ packet[count] = (void*)data;
if (xiph_PackHeaders(extra_size, extra, packet_size,
(const void **)packet, count + 1)) {
*extra_size = 0;
More information about the vlc-commits
mailing list