[vlc-devel] [PATCH] Fixed pause issue for streams without end (live cameras)
remi at remlab.net
Tue Oct 6 11:37:33 CEST 2015
Le 2015-10-05 14:06, Paulo Vitor Magacho da Silva a écrit :
> In code both PAUSE and SEEK have the same check (p_sys->rtsp not NULL
> and end time greater than 0).
I don't know any better ways to check for pause support in RTSP 1.0.
IIRC, you need RTSP 2.0 to actually solve that problem.
> This is ok for SEEK where you want to
> know the size of the video before jumping to another point.
That's not true. Without length, DEMUX_SET_POSITION makes no sense, but
DEMUX_SET_TIME still does.
> But for pause there is no need to check for end time greater than 0.
Yes there is. If you tell VLC you can pause and you actually can't, bad
> And in live cameras (at lest for the one I am testing) this value is
> zero preventing the camera to pause correctly.
Pausing live content makes no sense. You can't pause real time.
I am aware that we pretend to support pause for some types live
streams, but only insofar as it does not break anything (else).
More information about the vlc-devel