diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-11 03:47:01 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-11 03:47:01 +0000 |
commit | 9d4ebc4801effe30c2af538d00864993299e06fe (patch) | |
tree | 63ab498c0e5b5e8d7664c3b6fdebff5691e4fdb8 /src/libsputext/demux_sputext.c | |
parent | 263770caece699a5677a9017fa668c2ff30f4f76 (diff) | |
download | xine-lib-9d4ebc4801effe30c2af538d00864993299e06fe.tar.gz xine-lib-9d4ebc4801effe30c2af538d00864993299e06fe.tar.bz2 |
brand-new external subtitles support. (yes, it works!)
tested with asf, avi and mpeg but any media should work.
todo:
- clean up the master/slave stuff and public api.
- implement seeking on demux_sputext.c (it must seek to closest subtitle)
- general cleaning up and bugfixing
CVS patchset: 3860
CVS date: 2003/01/11 03:47:01
Diffstat (limited to 'src/libsputext/demux_sputext.c')
-rw-r--r-- | src/libsputext/demux_sputext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsputext/demux_sputext.c b/src/libsputext/demux_sputext.c index 11e956dad..f95ce177e 100644 --- a/src/libsputext/demux_sputext.c +++ b/src/libsputext/demux_sputext.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_sputext.c,v 1.6 2003/01/10 22:23:54 miguelfreitas Exp $ + * $Id: demux_sputext.c,v 1.7 2003/01/11 03:47:01 miguelfreitas Exp $ * * code based on old libsputext/xine_decoder.c * @@ -819,8 +819,8 @@ static int demux_sputext_next (demux_sputext_t *this_gen) { val = (uint32_t * )buf->content; *val++ = sub->lines; *val++ = this->uses_time; - *val++ = sub->start * 10; - *val++ = sub->end * 10; + *val++ = (this->uses_time) ? sub->start * 10 : sub->start; + *val++ = (this->uses_time) ? sub->end * 10 : sub->end; str = (char *)val; for (line = 0; line < sub->lines; line++, str+=strlen(str)+1) { if( strlen(sub->text[line]) > SUB_BUFSIZE ) |