Well I actually thought of the input. I placed the input check before the if condition. But didn't know it checked the rate. If the input is not launched then return 0. Maybe not because of inconsistency but it is just another cycle being occupied. My first try out was exactly without the rate and it checked out! Playing from a video file I couldn't fast rewind, while playing from a stream it worked. However there's a big problem when you set rate 0. VLC understood a rate of -31!!! Maybe checking for a 0 value would be nice! I saw previous Patches here in the development list with some work at this set_rate operation but none of them are in the source code. Maybe the work was discontinued because they found to much problems.<div>
<br></div><div><div>PLAY rtsp://<a href="http://192.168.1.201:8554/Redbull_720.ts/">192.168.1.201:8554/Redbull_720.ts/</a> RTSP/1.0</div><div>CSeq: 7</div><div>User-Agent: LibVLC/1.1.9 (LIVE555 Streaming Media v2010.11.17)</div>
<div>Session: 45231061</div><div>Scale: -31.250000</div><div><br></div><div><br></div><div>The problem you mentioned in the forum is kind of a big fail (yes i'm mundu :). When fast rewinding the time gets stuck and then it doesn't update. If you press play it will only start from the time you issued the setRate(negative), and not at the time where I pressed play again. Do you know where vlc actually updates its time?<br>
<br><div class="gmail_quote">2011/6/1 Sébastien Escudier <span dir="ltr"><<a href="mailto:sebastien-devel@celeos.eu">sebastien-devel@celeos.eu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Actually, I think we should just remove the "if (rate < 0.)" test from<br>
<div class="im">libvlc_media_player_set_rate<br>
</div>The rate is validated at the input level, no need to check it at<br>
multiple places, it could lead to inconsistencies.<br>
Moreover, what if the input is not launched yet ? we don't know if it<br>
will accept negative rates.<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div></blockquote></div><br></div></div>