diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-02-18 17:30:38 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-02-18 17:30:38 +0000 |
commit | 67fa83dc36e9e6184c6e836d1a7fd93fa4891990 (patch) | |
tree | 103f17b6b4060b46db12880c4e71ea4ca97265df /src/xine-engine | |
parent | e9728f74c747aa5c3f491cfce675cb5747413b6d (diff) | |
download | xine-lib-67fa83dc36e9e6184c6e836d1a7fd93fa4891990.tar.gz xine-lib-67fa83dc36e9e6184c6e836d1a7fd93fa4891990.tar.bz2 |
VO_PROP_MAX_NUM_FRAMES, expose event handling
CVS patchset: 1509
CVS date: 2002/02/18 17:30:38
Diffstat (limited to 'src/xine-engine')
-rw-r--r-- | src/xine-engine/video_out.c | 12 | ||||
-rw-r--r-- | src/xine-engine/video_out.h | 5 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 8e408ee5d..7f8c6fbe7 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.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: video_out.c,v 1.76 2002/02/18 13:33:19 guenter Exp $ + * $Id: video_out.c,v 1.77 2002/02/18 17:30:40 guenter Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -900,6 +900,7 @@ vo_instance_t *vo_new_instance (vo_driver_t *driver, xine_t *xine) { pthread_attr_t pth_attrs; int err; gzFile *fp; + int num_frame_buffers; this = xine_xmalloc (sizeof (vos_t)) ; @@ -931,7 +932,14 @@ vo_instance_t *vo_new_instance (vo_driver_t *driver, xine_t *xine) { this->overlay_source->init (this->overlay_source); this->overlay_enabled = 1; - for (i=0; i<NUM_FRAME_BUFFERS; i++) { + num_frame_buffers = driver->get_property (driver, VO_PROP_MAX_NUM_FRAMES); + + if (!num_frame_buffers) + num_frame_buffers = NUM_FRAME_BUFFERS; /* default */ + else if (num_frame_buffers<5) + num_frame_buffers = 5; + + for (i=0; i<num_frame_buffers; i++) { vo_frame_t *img; img = driver->alloc_frame (driver) ; diff --git a/src/xine-engine/video_out.h b/src/xine-engine/video_out.h index f9ebd68f2..e7a020c14 100644 --- a/src/xine-engine/video_out.h +++ b/src/xine-engine/video_out.h @@ -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: video_out.h,v 1.43 2002/02/17 00:06:58 guenter Exp $ + * $Id: video_out.h,v 1.44 2002/02/18 17:30:40 guenter Exp $ * * * xine version of video_out.h @@ -187,7 +187,8 @@ struct vo_instance_s { #define VO_PROP_OFFSET_X 10 #define VO_PROP_OFFSET_Y 11 #define VO_PROP_TVMODE 12 -#define VO_NUM_PROPERTIES 13 +#define VO_PROP_MAX_NUM_FRAMES 13 +#define VO_NUM_PROPERTIES 14 /* zoom specific constants FIXME: generate this from xine.tmpl.in */ #define VO_ZOOM_STEP 100 |