From c1d4212fe2fa0f85246e47505b6887e66884cb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Thu, 6 Mar 2008 20:24:44 +0100 Subject: Fix _x_get_current_frame_impl() to not abort when used legally. Retrieving frame size and format is a legal operation even for otherwise not supported frame formats like XXMC. --- src/xine-engine/xine.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index fb2c08b04..e9251267b 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -1961,9 +1961,13 @@ static int _x_get_current_frame_impl (xine_stream_t *stream, int *width, int *he break; default: + if (*img || alloc_img) { xprintf (stream->xine, XINE_VERBOSITY_DEBUG, "xine: error, snapshot function not implemented for format 0x%x\n", frame->format); _x_abort (); + } + + required_size = 0; } if (alloc_img) { -- cgit v1.2.3