From fae9c1c4c06032d07dca548cc9406d16f3f7262d Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 26 Jan 2003 18:12:39 +0000 Subject: patch from Fredrik Noring (slightly modified) bail out if video out cannot provide more pre-alloc'ed frames CVS patchset: 4013 CVS date: 2003/01/26 18:12:39 --- src/xine-engine/video_out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 9590976ef..97a5221ec 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.137 2003/01/25 12:10:33 mroi Exp $ + * $Id: video_out.c,v 1.138 2003/01/26 18:12:39 mroi Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -1252,6 +1252,7 @@ xine_video_port_t *vo_new_port (xine_t *xine, vo_driver_t *driver, vo_frame_t *img; img = driver->alloc_frame (driver) ; + if (!img) break; img->id = i; -- cgit v1.2.3