[FFmpeg-soc] [soc]: r5907 - mms/mmsh.c

Diego Biurrun diego at biurrun.de
Sat Aug 21 12:42:08 CEST 2010


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");
> _______________________________________________
> FFmpeg-soc mailing list
> FFmpeg-soc at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc


More information about the FFmpeg-soc mailing list