summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-02 14:50:12 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-02 14:50:12 +0000
commit7e876cb095a7564a2313fa03fef67b8ed4d26cb5 (patch)
tree9de328e1811784d7447ce2c78b50769127971b14 /stream
parent6133c207d608642f7ff02107040d7f505037da5a (diff)
downloadmpv-7e876cb095a7564a2313fa03fef67b8ed4d26cb5.tar.bz2
mpv-7e876cb095a7564a2313fa03fef67b8ed4d26cb5.tar.xz
doxygenized dvdnav_sid_from_lang() and dvdnav_number_of_subs()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21440 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvdnav.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index cbad3cab3b..8893c6becc 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -467,6 +467,12 @@ void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* but
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 @@ int dvdnav_sid_from_lang(stream_t *stream, unsigned char *language) {
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;