ralphy wrote: 
> In response to a PM from utgg, I need to remove this line from main.c
> 
> > 
Code:
--------------------
  >   > diff --git a/frontend/main.c b/frontend/main.c
  > index d04316a..c165cc9 100644
  > --- a/frontend/main.c
  > +++ b/frontend/main.c
  > @@ -492,7 +492,6 @@ static int decodeAACfile(char *aacfile, char *sndfile, 
char *adts_fn, int to_std
  > }
  > }
  > 
  > -    retval = fseek(b.infile, 0, SEEK_END);
  > #ifdef _WIN32
  > if (0 == strcmp(aacfile, "-")) {
  > retval = -1;
  > 
--------------------
> > 
> 
> Does this look correct now to those in the know?
> 
> > 
Code:
--------------------
  >   >  476 
  > 477     if (0 == strcmp(aacfile, "-"))
  > 478     {
  > 479         b.infile = stdin;
  > 480 #ifdef _WIN32
  > 481         setmode(fileno(stdin), O_BINARY);
  > 482 #endif
  > 483 
  > 484     } else
  > 485     {
  > 486         b.infile = fopen(aacfile, "rb");
  > 487         if (b.infile == NULL)
  > 488         {
  > 489             /* unable to open file */
  > 490             faad_fprintf(stderr, "Error opening file: %s\n", aacfile);
  > 491             return 1;
  > 492         }
  > 493     }
  > 494 
  > 495 #ifdef _WIN32
  > 496         if (0 == strcmp(aacfile, "-")) {
  > 497                 retval = -1;
  > 498         } else {
  > 499                 retval = fseek(b.infile, 0, SEEK_END);
  > 500         }
  > 501 #else
  > 502         retval = fseek(b.infile, 0, SEEK_END);
  > 503 #endif
  > 504     if (retval )
  > 505     {
  > 506          faad_fprintf(stderr, "Input not seekable %s\n", aacfile);
  > 507          fileread = -1;
  > 508          streaminput = 1;
  > 509     } else {
  > 510         fileread = ftell(b.infile);
  > 511         fseek(b.infile, 0, SEEK_SET);
  > 512     };
  > 
--------------------
> > 
> 
> I'll respin the faad binaries once confirmed.
> 
> Thanks,

Yep, that will do fine - thanks.

The pedant in me would also keep the indentation in line with the other
code for readability (probably my fault for using tabs rather than
spaces in the original fix post), but no need really.


------------------------------------------------------------------------
utgg's Profile: http://forums.slimdevices.com/member.php?userid=40900
View this thread: http://forums.slimdevices.com/showthread.php?t=107110

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to