Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/streamdvd/files: streamdvd-0.4-gcc44.patch
Date: Wed, 05 Aug 2009 19:06:49
Message-Id: E1MYlp1-0004Xy-MS@stork.gentoo.org
1 ssuominen 09/08/05 19:06:47
2
3 Added: streamdvd-0.4-gcc44.patch
4 Log:
5 Fix building with GCC 4.4+ and GLIBC 2.10+ wrt #278421.
6 (Portage version: 2.2_rc36/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 media-video/streamdvd/files/streamdvd-0.4-gcc44.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/streamdvd/files/streamdvd-0.4-gcc44.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/streamdvd/files/streamdvd-0.4-gcc44.patch?rev=1.1&content-type=text/plain
13
14 Index: streamdvd-0.4-gcc44.patch
15 ===================================================================
16 diff -ur StreamDVD-0.4.orig/mplex/lpcmstrm_in.cpp StreamDVD-0.4/mplex/lpcmstrm_in.cpp
17 --- StreamDVD-0.4.orig/mplex/lpcmstrm_in.cpp 2004-03-09 00:10:53.000000000 +0200
18 +++ StreamDVD-0.4/mplex/lpcmstrm_in.cpp 2009-08-05 22:05:48.000000000 +0300
19 @@ -52,7 +52,7 @@
20
21 bool LPCMStream::Probe(IBitStream &bs )
22 {
23 - char *last_dot = strrchr( bs.StreamName(), '.' );
24 + const char *last_dot = strrchr( bs.StreamName(), '.' );
25 return
26 last_dot != NULL
27 && strcmp( last_dot+1, "lpcm") == 0;
28 diff -ur StreamDVD-0.4.orig/mplex/yuv4mpeg_ratio.c StreamDVD-0.4/mplex/yuv4mpeg_ratio.c
29 --- StreamDVD-0.4.orig/mplex/yuv4mpeg_ratio.c 2004-03-09 00:10:53.000000000 +0200
30 +++ StreamDVD-0.4/mplex/yuv4mpeg_ratio.c 2009-08-05 22:07:49.000000000 +0300
31 @@ -104,7 +104,7 @@
32
33 int y4m_parse_ratio(y4m_ratio_t *r, const char *s)
34 {
35 - char *t = strchr(s, ':');
36 + const char *t = strchr(s, ':');
37 if (t == NULL) return Y4M_ERR_RANGE;
38 r->n = atoi(s);
39 r->d = atoi(t+1);