aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-24 08:12:08 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-24 08:12:08 +0000
commit65d087b955bb0ab5959ef2657b987461fbd548d4 (patch)
treebee989943a3bfb9d3ee237e2abc8e846fb9ba096 /libmpdemux
parent547ae18be29e568057376a45745d5f440df56a5c (diff)
Remove the now unused demux_mkv_change_subs function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23620 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_mkv.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c
index 47ce1eadec..c83a578a40 100644
--- a/libmpdemux/demux_mkv.c
+++ b/libmpdemux/demux_mkv.c
@@ -3592,45 +3592,6 @@ demux_mkv_control (demuxer_t *demuxer, int cmd, void *arg)
}
}
-/** \brief Change the current subtitle track and return its ID.
-
- Changes the current subtitle track. If the new subtitle track is a
- VobSub track then the SPU decoder will be re-initialized.
-
- \param demuxer The demuxer whose subtitle track will be changed.
- \param new_num The number of the new subtitle track. The number must be
- between 0 and demux_mkv_num_subs - 1.
-
- \returns The Matroska track number of the newly selected track.
-*/
-int
-demux_mkv_change_subs (demuxer_t *demuxer, int new_num)
-{
- mkv_demuxer_t *mkv_d = (mkv_demuxer_t *) demuxer->priv;
- mkv_track_t *track;
- int i, num;
-
- num = 0;
- track = NULL;
- for (i = 0; i < mkv_d->num_tracks; i++)
- {
- if ((mkv_d->tracks[i]->type == MATROSKA_TRACK_SUBTITLE) &&
- (mkv_d->tracks[i]->subtitle_type != MATROSKA_SUBTYPE_UNKNOWN))
- num++;
- if (num == (new_num + 1))
- {
- track = mkv_d->tracks[i];
- break;
- }
- }
- if (track == NULL)
- return -1;
-
- demuxer->sub->sh = demuxer->s_streams[track->tnum];
-
- return track->tnum;
-}
-
/** \brief Get the language code for a subtitle track.
Retrieves the language code for a subtitle track if it is known.