On 02/08/13 12:47, Martin Storsjö wrote:
> From: Gavriloaie Eugen-Andrei <[email protected]>
>
> +static int64_t rtmp_seek(URLContext *s, int stream_index, int64_t timestamp,
> + int flags)
> +{
> + RTMPContext *rt = s->priv_data;
> + av_log(s, AV_LOG_DEBUG,
> + "Seek on stream index %d at timestamp %lld with flags %08x\n",
> + stream_index, timestamp, flags);
> + if (gen_seek(s, rt, timestamp) < 0) {
> + av_log(s, AV_LOG_ERROR,
> + "Unable to send seek command on stream index %d at timestamp
> %lld with flags %08x\n",
> + stream_index, timestamp, flags);
> + return AVERROR(EIO);
gen_seek can return something different (e.g. enomem), might be worthy
forwarding it.
The rest looks fine.
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel