GNOME Bugzilla – Bug 516311
[dvdreadsrc] add readonly "chapters" element property to expose chapter count
Last modified: 2008-02-13 23:18:05 UTC
Add a readonly property through which one can retrieve the number of chapters in this DVD title. There is already a "chapter" read/write property, but there is no way to tell how many are available. Having the chapter count information through the "chapters" property will enable an application to create a dynamic chapter-selection menu list, for example.
Created attachment 105187 [details] [review] patch adding 'chapters' property on dvdreadsrc.c r1.50
You can already do this by querying the duration in chapters format: gst_format_get_by_nick("chapters")
I don't think a property adds much to the already-existing query (and one would probably want the same for titles + angles too then).