[FFmpeg-devel] [PATCH] RTSP muxer, round 5

Ronald S. Bultje rsbultje
Fri Feb 26 18:02:24 CET 2010


Hi,

On Fri, Feb 26, 2010 at 11:51 AM, Martin Storsj? <martin at martin.st> wrote:
> On Fri, 26 Feb 2010, Luca Barbato wrote:
>> On 02/22/2010 10:01 PM, Martin Storsj? wrote:
>> > On Mon, 22 Feb 2010, Ronald S. Bultje wrote:
>> >> On Fri, Feb 19, 2010 at 6:05 PM, Martin Storsj? <martin at martin.st> wrote:
>> >> +static int rtsp_write_close(AVFormatContext *s)
>> >> +{
>> >> + ? ?RTSPState *rt = s->priv_data;
>> >> + ? ?char cmd[1024];
>> >> +
>> >> + ? ?snprintf(cmd, sizeof(cmd),
>> >> + ? ? ? ? ? ? "PAUSE %s RTSP/1.0\r\n",
>> >> + ? ? ? ? ? ? s->filename);
>> >> + ? ?rtsp_send_cmd_async(s, cmd);
>> >> +
>> >> + ? ?snprintf(cmd, sizeof(cmd),
>> >> + ? ? ? ? ? ? "TEARDOWN %s RTSP/1.0\r\n",
>> >> + ? ? ? ? ? ? s->filename);
>> >> + ? ?rtsp_send_cmd_async(s, cmd);
>> >> +
>> >> + ? ?rtsp_close_streams(s);
>> >> + ? ?url_close(rt->rtsp_hd);
>> >> + ? ?return 0;
>> >> +}
>> >>
>> >> Why do you send both PAUSE and TEARDOWN?
>> >
>> > I've modelled much behaviour after QuickTime Broadcaster, which did this,
>> > IIRC. The PAUSE didn't seem to be necessary, though, so removed.
>>
>> I'd keep that, teardown is supposed to "just" invalidate rtsp the session...
>
> Hmm, ok. Any other statements on this, Luca A, Ronald? I don't know the
> specs in detail, but can change this if you think that's more correct
> keeping the PAUSE.

Luca is my bible when it comes to spec compliance (and he just quoted
the spec to me on IRC), so if he thinks including PAUSE is better,
then I think we should include the PAUSE.

Ronald



More information about the ffmpeg-devel mailing list