summaryrefslogtreecommitdiff
path: root/src/libffmpeg/xine_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libffmpeg/xine_decoder.c')
-rw-r--r--src/libffmpeg/xine_decoder.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c
index f65dfe443..f4831f4ac 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.29 2002/04/01 17:59:47 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.30 2002/04/09 03:38:00 miguelfreitas Exp $
*
* xine decoder plugin using ffmpeg
*
@@ -360,6 +360,10 @@ static void ff_flush (video_decoder_t *this_gen) {
}
+static void ff_reset (video_decoder_t *this_gen) {
+ /* seems to handle seeking quite nicelly without any code here */
+}
+
static void ff_close (video_decoder_t *this_gen) {
ff_decoder_t *this = (ff_decoder_t *) this_gen;
@@ -391,7 +395,7 @@ video_decoder_t *init_video_decoder_plugin (int iface_version, xine_t *xine) {
ff_decoder_t *this ;
static pthread_once_t once_control = PTHREAD_ONCE_INIT;
- if (iface_version != 5) {
+ if (iface_version != 6) {
printf( "ffmpeg: plugin doesn't support plugin API version %d.\n"
"ffmpeg: this means there's a version mismatch between xine and this "
"ffmpeg: decoder plugin.\nInstalling current plugins should help.\n",
@@ -407,6 +411,7 @@ video_decoder_t *init_video_decoder_plugin (int iface_version, xine_t *xine) {
this->video_decoder.init = ff_init;
this->video_decoder.decode_data = ff_decode_data;
this->video_decoder.flush = ff_flush;
+ this->video_decoder.reset = ff_reset;
this->video_decoder.close = ff_close;
this->video_decoder.get_identifier = ff_get_id;
this->video_decoder.priority = 5;