diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-12-29 16:48:34 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-12-29 16:48:34 +0000 |
commit | 182d528760cba355dfc35c9e8e27651c30e6fb76 (patch) | |
tree | 93230b4a3707dcf02132b9f50ed77ecb0399f229 /src/demuxers | |
parent | c9c60f8835bd8921c28be6faa8c8ee03d2118d8f (diff) | |
download | xine-lib-182d528760cba355dfc35c9e8e27651c30e6fb76.tar.gz xine-lib-182d528760cba355dfc35c9e8e27651c30e6fb76.tar.bz2 |
remove old hack for sputext
CVS patchset: 3719
CVS date: 2002/12/29 16:48:34
Diffstat (limited to 'src/demuxers')
-rw-r--r-- | src/demuxers/demux_avi.c | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index c7f46fc12..c5bfceebe 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.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_avi.c,v 1.141 2002/12/23 21:29:57 miguelfreitas Exp $ + * $Id: demux_avi.c,v 1.142 2002/12/29 16:48:34 mroi Exp $ * * demultiplexer for avi streams * @@ -183,7 +183,6 @@ typedef struct demux_avi_s { int status; int no_audio; - int have_spu; uint32_t video_step; uint32_t AVI_errno; @@ -1129,23 +1128,6 @@ static int demux_avi_next (demux_avi_t *this, int decoder_flags) { */ this->video_fifo->put (this->video_fifo, buf); - - /* - * send packages to inform & drive text spu decoder - */ - - if (this->have_spu && (buf->decoder_flags & BUF_FLAG_FRAME_END)) { - buf_element_t *buf; - buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); - - buf->decoder_flags = BUF_FLAG_FRAME_END; - buf->type = BUF_SPU_TEXT; - buf->pts = video_pts; - - buf->decoder_info[1] = this->avi->video_posf; - - this->video_fifo->put (this->video_fifo, buf); - } } if( buf ) { @@ -1285,29 +1267,6 @@ static void demux_avi_send_headers (demux_plugin_t *this_gen) { this->audio_fifo->put (this->audio_fifo, buf); } } - - /* - * send external spu file pointer, if present - */ - - if (this->input->get_optional_data (this->input, &sub, INPUT_OPTIONAL_DATA_TEXTSPU0)) { - buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); - buf->content = sub; - - buf->type = BUF_SPU_TEXT; - - buf->decoder_flags = BUF_FLAG_HEADER; - buf->decoder_info[1] = this->avi->width; - buf->decoder_info[2] = this->avi->height; - - this->video_fifo->put (this->video_fifo, buf); - - this->have_spu = 1; - - printf ("demux_avi: text subtitle file available\n"); - - } else - this->have_spu = 0; } /* |