From 24e10a7f86d771de17b7b6bc8477a43a766f037a Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 17 Oct 2004 19:13:09 +0000 Subject: img->stream == NULL is valid CVS patchset: 7042 CVS date: 2004/10/17 19:13:09 --- src/xine-engine/video_out.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 3deca0760..a1280fa85 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.210 2004/10/14 23:25:24 tmattern Exp $ + * $Id: video_out.c,v 1.211 2004/10/17 19:13:09 mroi Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -1603,7 +1603,8 @@ static vo_frame_t * crop_frame( xine_video_port_t *this_gen, vo_frame_t *img ) { dupl->is_first = img->is_first; dupl->stream = img->stream; - _x_refcounter_inc(img->stream->refcounter); + if (img->stream) + _x_refcounter_inc(img->stream->refcounter); memcpy( dupl->extra_info, img->extra_info, sizeof(extra_info_t) ); /* delay frame processing for now, we might not even need it (eg. frame will be discarded) */ -- cgit v1.2.3