From a2dcf860b2777e530646abd00202c3fb5b3a5a81 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sun, 7 Dec 2003 15:33:25 +0000 Subject: 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 --- src/post/planar/eq2.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/post/planar/eq2.c') diff --git a/src/post/planar/eq2.c b/src/post/planar/eq2.c index 0cea3276e..e4db57b24 100644 --- a/src/post/planar/eq2.c +++ b/src/post/planar/eq2.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: eq2.c,v 1.11 2003/11/11 18:44:59 f1rmb Exp $ + * $Id: eq2.c,v 1.12 2003/12/07 15:33:26 miguelfreitas Exp $ * * mplayer's eq2 (soft video equalizer) * Software equalizer (brightness, contrast, gamma, saturation) @@ -633,11 +633,13 @@ static vo_frame_t *eq2_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 = eq2_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 = eq2_draw; + /* decoders should not copy the frames, since they won't be displayed */ + frame->proc_slice = NULL; + frame->proc_frame = NULL; + } return frame; } -- cgit v1.2.3