diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-01-26 18:12:39 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-01-26 18:12:39 +0000 |
commit | fae9c1c4c06032d07dca548cc9406d16f3f7262d (patch) | |
tree | 49a44cdad460b029b13dd495a6f77492ad4394d9 | |
parent | af1bd72f4afec2060df8e7f241b667874850b199 (diff) | |
download | xine-lib-fae9c1c4c06032d07dca548cc9406d16f3f7262d.tar.gz xine-lib-fae9c1c4c06032d07dca548cc9406d16f3f7262d.tar.bz2 |
patch from Fredrik Noring <noring@nocrew.org> (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
-rw-r--r-- | src/xine-engine/video_out.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |