[vlc-devel] [PATCH] Fixed pause issue for streams without end (live cameras)

Paulo Vitor Magacho da Silva pvmagacho at gmail.com
Mon Oct 5 13:06:10 CEST 2015

In code both PAUSE and SEEK have the same check (p_sys->rtsp not NULL and
end time greater than 0). This is ok for SEEK where you want to know the
size of the video before jumping to another point.
But for pause there is no need to check for end time greater than 0. And in
live cameras (at lest for the one I am testing) this value is zero
preventing the camera to pause correctly.
Do you have any suggestion about the patch?

2015-10-05 4:07 GMT-03:00 Rémi Denis-Courmont <remi at remlab.net>:

> Le 2015-10-04 23:57, Paulo Vitor Magacho da Silva a écrit :
>> Hi,
>> The patch is to check only if the p_sys->rtsp is already created.
>> That should be enough to allow the video to be paused. Right now, both
>> PAUSE and SEEK have the same check and takes into account also the
>> video duration, which might be zero for live cameras.
>> Do you agree?
> As I wrote already, that is _not_ my understanding of the code.
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20151005/cac7e6d2/attachment.html>

More information about the vlc-devel mailing list