GNOME Bugzilla – Bug 544174
[basesrc] allow dynamic value of the seekable value.
Last modified: 2008-07-28 22:16:35 UTC
Now in basesrc the is_seekable function from the baseclass is only called once at start. So this means that baseclass can choose only at startup that it would be seekable or not. If you want to create an element that can enable/disable seeking, like a dvd src that isn't seekable in the menu's but is seekable in the movie, it is not possible to inform the baseclass about it with the current implementation. This patch ask on every query on the baseclass if it is seekable. So, it is now possible for the baseclass to disable/enable seeking.
Created attachment 115007 [details] [review] basesrc_seekable.diff
Committed: * libs/gst/base/gstbasesrc.c: * libs/gst/base/gstbasesrc.h: Don't cache the seekable status. Fixes bug #544174