From 67fa83dc36e9e6184c6e836d1a7fd93fa4891990 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Mon, 18 Feb 2002 17:30:38 +0000 Subject: VO_PROP_MAX_NUM_FRAMES, expose event handling CVS patchset: 1509 CVS date: 2002/02/18 17:30:38 --- src/xine-engine/video_out.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/xine-engine/video_out.c') 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; iget_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; ialloc_frame (driver) ; -- cgit v1.2.3