# HG changeset patch # User nicodvb # Date 1165071012 0 # Node ID 3504737c4e961fab7231a9e254a540c06464ecbf # Parent db712772c7cc94a1b7c8280e7f40bbd093d65aaf doxygenized dvdnav_sid_from_lang() and dvdnav_number_of_subs() diff -r db712772c7cc -r 3504737c4e96 stream/stream_dvdnav.c --- a/stream/stream_dvdnav.c Sat Dec 02 14:00:41 2006 +0000 +++ b/stream/stream_dvdnav.c Sat Dec 02 14:50:12 2006 +0000 @@ -467,6 +467,12 @@ priv->mousey = y; } +/** + * \brief dvdnav_sid_from_lang() returns the subtitle id corresponding to the language code 'lang' + * \param stream: - stream pointer + * \param lang: 2-characters language code[s], eventually separated by spaces of commas + * \return -1 on error, current subtitle id if successful + */ int dvdnav_sid_from_lang(stream_t *stream, unsigned char *language) { dvdnav_priv_t * priv=(dvdnav_priv_t*)stream->priv; uint8_t format, lg, k; @@ -488,6 +494,11 @@ return -1; } +/** + * \brief dvdnav_number_of_subs() returns the count of available subtitles + * \param stream: - stream pointer + * \return 0 on error, something meaningful otherwise + */ int dvdnav_number_of_subs(stream_t *stream) { dvdnav_priv_t * priv=(dvdnav_priv_t*)stream->priv; uint8_t lg, k, n=0;