trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

Re: [trinity-devel] Re: Deb users - where do I find this patch? (wanted for kmplayer fix)

From: "David C. Rankin" <drankinatty@...>
Date: Fri, 20 Apr 2012 15:31:12 -0500
On 04/20/2012 02:43 PM, Calvin Morrison wrote:
> for example:
> 
> http://packages.debian.org/source/wheezy/gopchop
> 
> scroll down to the downloads section:
> gopchop_1.1.8-5.debian.tar.gz
> 
> that tar.gz includes everything needed to make the package, including the
> patches, just like you would have with a pkgbuild's .src.gz on arch :-)

Thanks Calvin,

  I saw that, but I kept looking for a link to 'something.diff' No wonder I
didn't find it. Hey I need your help with a union question. I have fixed
xineplayer.cpp in mplayer and I'm now stuck on gstplayer.cpp. The issue is:

    XClientMessageEvent ev = {
        ClientMessage, 0, true, display, wid,
        XInternAtom (display, "XVIDEO", false), 8, {b: "quit_now"}
    };

gcc47 is choking on the {b: "quit_now"} assignment to 'b' in the
XClientMessageEvent data union.

gstplayer.cpp: In function 'int main(int, char**)':
gstplayer.cpp:1009:5: error: C99 designator 'b' outside aggregate initializer

  How do I fix this??

+       XInternAtom (display, "XVIDEO", false), 8, {data.b="quit_now"}

or do I have to use some strncpy to get "quit_now" into the union?

-- 
David C. Rankin, J.D.,P.E.