[FFmpeg-soc] [soc]: r5907 - mms/mmsh.c
zhentan feng
spyfeng at gmail.com
Sat Aug 21 12:55:19 CEST 2010
Hi
On Sat, Aug 21, 2010 at 6:42 PM, Diego Biurrun <diego at biurrun.de> wrote:
> On Tue, Aug 17, 2010 at 03:50:28PM +0200, spyfeng wrote:
> >
> > Log:
> > make const string inline without use the static variable.
> >
> > --- mms/mmsh.c Tue Aug 17 15:42:21 2010 (r5906)
> > +++ mms/mmsh.c Tue Aug 17 15:50:27 2010 (r5907)
> > @@ -255,7 +235,13 @@ static int mmsh_open(URLContext *h, cons
> >
> > - snprintf (headers, sizeof(headers), mmsh_first_request,
> > + snprintf(headers, sizeof(headers),
> > + "Accept: */*\r\n"
> > + USERAGENT
>
> Indentation is off, you should align the arguments, i.e.:
>
> snprintf(headers, sizeof(headers),
> "Accept: */*\r\n"
> USERAGENT
>
> > @@ -283,7 +269,16 @@ static int mmsh_open(URLContext *h, cons
> > offset += err;
> > }
> > // send play request
> > - err = snprintf(headers, sizeof(headers), mmsh_live_request,
> > + err = snprintf(headers, sizeof(headers),
> > + "Accept: */*\r\n"
> > + USERAGENT
> > + "Host: %s:%d\r\n"
> > + "Pragma: no-cache,rate=1.000000,request-context=%u\r\n"
> > + "Pragma: xPlayStrm=1\r\n"
> > + CLIENTGUID
> > + "Pragma: stream-switch-count=%d\r\n"
> > + "Pragma: stream-switch-entry=%s\r\n"
> > + "Connection: Close\r\n\r\n",
> > host, port, mmsh->request_seq++, mms->stream_num,
> stream_selection);
> > if (err < 0) {
> > av_log(NULL, AV_LOG_ERROR, "build play request failed!\n");
>
>
thanks, I have already fixed it according to stefano's comments.
zhentan
--
Best wishes~
More information about the FFmpeg-soc
mailing list