# HG changeset patch # User mru # Date 1116536583 0 # Node ID ed249b9caa2f867a87745dc83be8735924a22a46 # Parent 769c2a9062c172407c67bd8baa0e499268596ae2 don't try to find file length if streaming diff -r 769c2a9062c1 -r ed249b9caa2f ogg2.c --- a/ogg2.c Thu May 19 00:17:50 2005 +0000 +++ b/ogg2.c Thu May 19 21:03:03 2005 +0000 @@ -450,9 +450,9 @@ { ogg_t *ogg = s->priv_data; int idx = -1, i; -//FIXME: get the right ctx flag to know if is seekable or not -// if(ogg->f->flags & URL_FLAG_STREAMED) -// return 0; + + if(s->pb.is_streamed) + return 0; // already set if (s->duration != AV_NOPTS_VALUE)