diff options
author | Reinhard Nißl <rnissl@gmx.de> | 2008-03-06 20:24:44 +0100 |
---|---|---|
committer | Reinhard Nißl <rnissl@gmx.de> | 2008-03-06 20:24:44 +0100 |
commit | c1d4212fe2fa0f85246e47505b6887e66884cb6b (patch) | |
tree | be0ded7dd5cca4220ba4b45212eea07203cfad59 /src/xine-engine/xine.c | |
parent | 6371d5b3fa816035369a912e2e6949041638435c (diff) | |
download | xine-lib-c1d4212fe2fa0f85246e47505b6887e66884cb6b.tar.gz xine-lib-c1d4212fe2fa0f85246e47505b6887e66884cb6b.tar.bz2 |
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.
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |