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/xine-engine/audio_out.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/xine-engine/audio_out.c')
-rw-r--r-- | src/xine-engine/audio_out.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 7cb1e1d74..b98fe7940 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.97 2003/01/10 19:15:16 miguelfreitas Exp $ + * $Id: audio_out.c,v 1.98 2003/01/11 03:47:01 miguelfreitas Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe <andy@alsaplayer.org> @@ -913,7 +913,8 @@ static void ao_put_buffer (xine_audio_port_t *this_gen, buf->vpts = stream->metronom->got_audio_samples (stream->metronom, pts, buf->num_frames); - + buf->extra_info->vpts = buf->vpts; + #ifdef LOG printf ("audio_out: ao_put_buffer, pts=%lld, vpts=%lld\n", pts, buf->vpts); @@ -1137,7 +1138,7 @@ static int ao_status (xine_audio_port_t *this_gen, xine_stream_t *stream, pthread_mutex_lock(&this->streams_lock); for (cur = xine_list_first_content(this->streams); cur; cur = xine_list_next_content(this->streams)) - if (cur == stream) { + if (cur == stream || !stream) { *bits = this->input.bits; *rate = this->input.rate; *mode = this->input.mode; |