diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-10-17 19:13:09 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-10-17 19:13:09 +0000 |
commit | 24e10a7f86d771de17b7b6bc8477a43a766f037a (patch) | |
tree | 2783aa4a52736f423ddf7a95ac43dc08b4d305ef /src | |
parent | cae319c9d3e0f801677ebc17bc6fc4523c27e84a (diff) | |
download | xine-lib-24e10a7f86d771de17b7b6bc8477a43a766f037a.tar.gz xine-lib-24e10a7f86d771de17b7b6bc8477a43a766f037a.tar.bz2 |
img->stream == NULL is valid
CVS patchset: 7042
CVS date: 2004/10/17 19:13:09
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/video_out.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) */ |