diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-26 21:53:41 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-26 21:53:41 +0000 |
commit | 4b80217cb872335e6f01de22d58fc0778da265c6 (patch) | |
tree | aec4ac26159e8e0670263c00cbab7be4ce3e4cab /src/libmpeg2/xine_decoder.c | |
parent | c42215d759320ab0cfb4d997064535c0bf32f785 (diff) | |
download | xine-lib-4b80217cb872335e6f01de22d58fc0778da265c6.tar.gz xine-lib-4b80217cb872335e6f01de22d58fc0778da265c6.tar.bz2 |
- cleanup internal interfaces for rewiring
- fix UI_PLAYBACK_FINISHED rifle
CVS patchset: 3686
CVS date: 2002/12/26 21:53:41
Diffstat (limited to 'src/libmpeg2/xine_decoder.c')
-rw-r--r-- | src/libmpeg2/xine_decoder.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libmpeg2/xine_decoder.c b/src/libmpeg2/xine_decoder.c index f09cc45c3..7232dd66b 100644 --- a/src/libmpeg2/xine_decoder.c +++ b/src/libmpeg2/xine_decoder.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: xine_decoder.c,v 1.46 2002/12/22 15:03:04 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.47 2002/12/26 21:53:42 miguelfreitas Exp $ * * stuff needed to turn libmpeg2 into a xine decoder plugin */ @@ -50,7 +50,6 @@ typedef struct mpeg2dec_decoder_s { mpeg2dec_t mpeg2; mpeg2_class_t *class; xine_stream_t *stream; - xine_video_port_t *video_out; } mpeg2dec_decoder_t; static void mpeg2dec_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { @@ -116,7 +115,7 @@ static void mpeg2dec_dispose (video_decoder_t *this_gen) { mpeg2_close (&this->mpeg2); - this->video_out->close(this->video_out, this->stream); + this->stream->video_out->close(this->stream->video_out, this->stream); free (this); } @@ -136,9 +135,8 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre this->class = (mpeg2_class_t *) class_gen; this->mpeg2.stream = stream; - mpeg2_init (&this->mpeg2, stream->video_out); + mpeg2_init (&this->mpeg2); stream->video_out->open(stream->video_out, stream); - this->video_out = stream->video_out; this->mpeg2.force_aspect = 0; return &this->video_decoder; |