[mythtv] [PATCH] : small cleanup
manu
eallaud at yahoo.fr
Mon Nov 10 07:25:50 EST 2003
Le 10.11.2003 18:01:42, Matt Zimmerman a écrit :
> On Mon, Nov 10, 2003 at 12:12:53AM +0100, manu wrote:
>
> > this is my first patch for myth, tell me if I got it wrong.
> > [...]
> > --- ../../../mythtv-cvs/mythtv/libs/libmyth/audiooutputoss.cpp
> 2003-10-23
> 22:28:34.000000000 +0200
> > +++ libs/libmyth/audiooutputoss.cpp 2003-11-09
> 22:46:29.000000000 +0100
> > @@ -227,16 +227,16 @@
> > while ((written < size) &&
> > ((lw = write(audiofd, tmpbuf, size - written)) > 0))
> > {
> > - if (lw == -1)
> > - {
> > - cerr << "Error writing to audio device, exiting\n";
> > - close(audiofd);
> > - audiofd = -1;
> > - return;
> > - }
> > written += lw;
> > tmpbuf += lw;
> > }
> > + if (lw < 0)
> > + {
> > + cerr << "Error writing to audio device, exiting\n";
> > + close(audiofd);
> > + audiofd = -1;
> > + return;
> > + }
> > }
> >
> > void AudioOutputOSS::SetTimecode(long long timecode)
>
> Please avoid reindenting code when submitting patches.
Oops sorry I just realized that (BTW I am using emacs, so it should
"guess" the indentation from the previous lines ??)
Bye
Manu
More information about the mythtv-dev
mailing list