Re: Cannot make Zinf play an audio cd.

"David Hough" <[email protected]> Wed, 26 May 2004 21:45:46 +0100
Newsgroups gmane.comp.audio.zinf.user
Message-ID <[email protected]>
On Wed, 26 May 2004 20:16:40 +0100, Matt Smith <[email protected]>  
wrote:

> On Wed, 26 May 2004 19:30:47 +0100
> "David Hough" <[email protected]> wrote:
>
>> >>
>> >> I'm pretty sure that the previous version 2.2.4(the last Gtk+ 1  
>> release)
>> >> doesn't have this problem, or you could recompile 2.2.5 after  
>> applying
>> >> the
>> >> patch from the devel list
>> >> http://sourceforge.net/mailarchive/message.php?msg_id=7577994
>> >>
>> >> David
>> >
>> > Thanks very much for your reply David.  I was using version 2.2.5  
>> which
>> > I have uninstalled using RpmDrake so that I can compile it from source
>> > after applying the patch.  The problem I encountered is that I don't
>> > actually know how to apply the patch to the source code.  I cut and
>> > paste the text of the patch into a new file (I called it zinf-patch).  
>> I
>> > then unpacked the zinf source code archive, cd'd into the zinf-2.2.5
>> > directory and typed:
>> >
>> > patch -i zinf-patch
>>
>> Looking at the patch you also need to add -p1 or --strip=1 option
>> so you should be able to just execute
>>
>> patch -p1 -i zinf-patch
>
> I tried to patch using the above command as suggested and it gave the  
> following error:
>
> Hunk #1 FAILED at 59.
> 1 out of 1 hunk FAILED -- saving rejects to file  
> io/cd/unix/include/cdpmo.h.rej
> patching file io/cd/unix/src/cdpmo.cpp
> Hunk #1 FAILED at 106.
> 1 out of 1 hunk FAILED -- saving rejects to file  
> io/cd/unix/src/cdpmo.cpp.rej
>
> It appears that the patching process has failed.  Is there anything else  
> I could try?
>
> Thanks,
> Matt.

Hmmm, no idea whats going wrong there, maybe it something went wrong when  
copying into the file.

You could of course make the changes yourself as it is a very small patch.  
The patch is formated such that the original contents of a line is marked  
by "-" at the start and the new version of the line is marked by "+".

So to apply the first half you would change the line

virtual Error SetTo(const char *url);

which is in the file io/cd/unix/include/cdpmo.h, around line 59, to

virtual Error SetUrl(const std::string& track_url);

and so on.

David
-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click