diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-12-07 15:33:25 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-12-07 15:33:25 +0000 |
commit | a2dcf860b2777e530646abd00202c3fb5b3a5a81 (patch) | |
tree | 160201bc19d683338e3f8697181d5f314bd79438 /src/post/planar/unsharp.c | |
parent | 8071d7b501d5eb338ccc36f5c9bbee8bf86fb518 (diff) | |
download | xine-lib-a2dcf860b2777e530646abd00202c3fb5b3a5a81.tar.gz xine-lib-a2dcf860b2777e530646abd00202c3fb5b3a5a81.tar.bz2 |
fix post plugins interception
two tvtime plugins do not crash xine anymore :)
(but why would anybody do that?)
CVS patchset: 5859
CVS date: 2003/12/07 15:33:25
Diffstat (limited to 'src/post/planar/unsharp.c')
-rw-r--r-- | src/post/planar/unsharp.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/post/planar/unsharp.c b/src/post/planar/unsharp.c index 65ebba954..f60530fb9 100644 --- a/src/post/planar/unsharp.c +++ b/src/post/planar/unsharp.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: unsharp.c,v 1.11 2003/11/11 18:44:59 f1rmb Exp $ + * $Id: unsharp.c,v 1.12 2003/12/07 15:33:26 miguelfreitas Exp $ * * mplayer's unsharp * Copyright (C) 2002 Rémi Guyomarch <rguyom@pobox.com> @@ -465,11 +465,13 @@ static vo_frame_t *unsharp_get_frame(xine_video_port_t *port_gen, uint32_t width width, height, ratio, format, flags); _x_post_intercept_video_frame(frame, port); - /* replace with our own draw function */ - frame->draw = unsharp_draw; - /* decoders should not copy the frames, since they won't be displayed */ - frame->proc_slice = NULL; - frame->proc_frame = NULL; + if( format == XINE_IMGFMT_YV12 || format == XINE_IMGFMT_YUY2 ) { + /* replace with our own draw function */ + frame->draw = unsharp_draw; + /* decoders should not copy the frames, since they won't be displayed */ + frame->proc_slice = NULL; + frame->proc_frame = NULL; + } return frame; } |