basesrc: Only force-update the duration for dynamic sources when doing the DURATION...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 6 Jun 2013 14:46:12 +0000 (16:46 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 6 Jun 2013 14:46:12 +0000 (16:46 +0200)
commitbab1122a93a67c5b789fca2161249b29497db3c4
treebd449b525cac4a4bef194357e3c05791cc228278
parentc8d093627328c9d9850b29d15848db144e628a52
basesrc: Only force-update the duration for dynamic sources when doing the DURATION query

Doing it after every single create() is not very efficient and not necessary.
Especially on network file systems fstat() is not cached and causes network
traffic, making the source possibly unusable slow.

https://bugzilla.gnome.org/show_bug.cgi?id=652037
libs/gst/base/gstbasesrc.c