summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-10-14 20:47:31 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-10-14 20:47:31 +0000
commitdf60bbdb196064a14dc0f040f338436e2c8613a5 (patch)
treef914425eeea1b8f99c7c1cc9007654038c38b524
parent8fc010783beca91f62fc32e3549d4cbe8d4fb968 (diff)
downloadxine-lib-df60bbdb196064a14dc0f040f338436e2c8613a5.tar.gz
xine-lib-df60bbdb196064a14dc0f040f338436e2c8613a5.tar.bz2
forgot to merge init function
CVS patchset: 2831 CVS date: 2002/10/14 20:47:31
-rw-r--r--src/libffmpeg/xine_decoder.c33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c
index 37d0662fa..64e74940c 100644
--- a/src/libffmpeg/xine_decoder.c
+++ b/src/libffmpeg/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.56 2002/10/14 19:29:19 guenter Exp $
+ * $Id: xine_decoder.c,v 1.57 2002/10/14 20:47:31 guenter Exp $
*
* xine decoder plugin using ffmpeg
*
@@ -256,21 +256,6 @@ static void find_sequence_header (ff_decoder_t *this,
}
}
-static void ff_init (video_decoder_t *this_gen, vo_instance_t *video_out) {
-
- ff_decoder_t *this = (ff_decoder_t *) this_gen;
-
- this->video_out = video_out;
- this->decoder_ok = 0;
- this->buf = NULL;
-
- this->shift = 0xffffff00;
- this->code = 0xb4;
- this->chunk_ptr = this->chunk_buffer;
-
- this->is_continous = 0;
-}
-
static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
ff_decoder_t *this = (ff_decoder_t *) this_gen;
int ratio;
@@ -632,10 +617,10 @@ static void ff_dispose (video_decoder_t *this_gen) {
}
void * open_plugin (void *class_gen, xine_stream_t *stream,
- const void *data) {
-
+ const void *vo_gen) {
- ff_decoder_t *this ;
+ ff_decoder_t *this ;
+ vo_instance_t *vo = (vo_instance_t *) vo_gen;
this = (ff_decoder_t *) malloc (sizeof (ff_decoder_t));
@@ -650,6 +635,16 @@ void * open_plugin (void *class_gen, xine_stream_t *stream,
this->chunk_buffer = xine_xmalloc (SLICE_BUFFER_SIZE + 4);
+ this->video_out = vo;
+ this->decoder_ok = 0;
+ this->buf = NULL;
+
+ this->shift = 0xffffff00;
+ this->code = 0xb4;
+ this->chunk_ptr = this->chunk_buffer;
+
+ this->is_continous = 0;
+
return (video_decoder_t *) this;
}