[PATH] fix gcc 4.4 compile error in mplex
Gert Vervoort <[email protected]> Sat, 13 Jun 2009 13:24:48 +0200
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, gcc 4.4 fails compiling mplex: lpcmstrm_in.cpp: In static member function ‘static bool LPCMStream::Probe(IBitStream&)’: lpcmstrm_in.cpp:56: error: invalid conversion from ‘const char*’ to ‘char*’ Attached a patch against current CVS which fixes this problem. Gert ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Mjpeg-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mjpeg-developer
mplex_gcc44.diff
(text/x-diff, 392 B)
--- mplex/lpcmstrm_in.cpp.1 2009-06-13 13:19:45.000000000 +0200
+++ mplex/lpcmstrm_in.cpp 2009-06-13 13:18:47.000000000 +0200
@@ -53,7 +53,7 @@
bool LPCMStream::Probe(IBitStream &bs )
{
- char *last_dot = strrchr( bs.StreamName(), '.' );
+ const char *last_dot = strrchr( bs.StreamName(), '.' );
return
last_dot != NULL
&& strcmp( last_dot+1, "lpcm") == 0;