Mercurial > mplayer.hg
changeset 7769:96bc9b4a0287
avoid multiple init
author | michael |
---|---|
date | Thu, 17 Oct 2002 00:04:33 +0000 |
parents | f5223b78ebf6 |
children | 0f67ecec403f |
files | postproc/yuv2rgb.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/postproc/yuv2rgb.c Wed Oct 16 23:12:00 2002 +0000 +++ b/postproc/yuv2rgb.c Thu Oct 17 00:04:33 2002 +0000 @@ -232,7 +232,7 @@ void *yuv2rgb_c_init (unsigned bpp, int mode, void *table_rV[256], void *table_gU[256], int table_gV[256], void *table_bU[256]); -yuv2rgb_fun yuv2rgb; +yuv2rgb_fun yuv2rgb= NULL; static void (* yuv2rgb_c_internal) (uint8_t *, uint8_t *, uint8_t *, uint8_t *, @@ -263,7 +263,7 @@ void yuv2rgb_init (unsigned bpp, int mode) { - yuv2rgb = NULL; + if(yuv2rgb) return; #ifdef CAN_COMPILE_X86_ASM if(gCpuCaps.hasMMX2) {