Ticket #1058: 1058-dbg-v1.patch

File 1058-dbg-v1.patch, 1.6 KB (added by danielk, 20 years ago)

Debug patch for CreateShmImages problem

  • libs/libmythtv/videoout_xv.cpp

     
    15081508            image = XvShmCreateImage(XJ_disp, xv_port, xv_chroma, 0,
    15091509                                     XJ_width, XJ_height, &XJ_shm_infos[i]);
    15101510            size = ((XvImage*)image)->data_size + 64;
     1511            VERBOSE(VB_IMPORTANT, "XvShmCreateImage(xv_port:"<<xv_port
     1512                    <<", xv_chroma:"<<xv_chroma<<", XJ_width:"<<XJ_width
     1513                    <<", XJ_height:"<<XJ_height<<", i:"<<i
     1514                    <<") -> data_size:"<<((XvImage*)image)->data_size);
    15111515        }
    15121516        else
    15131517        {
     
    15271531            if (XJ_shm_infos[i].shmid >= 0)
    15281532            {
    15291533                XJ_shm_infos[i].shmaddr = (char*) shmat(XJ_shm_infos[i].shmid, 0, 0);
     1534                VERBOSE(VB_IMPORTANT, "shmat(i:"<<i<<")"
     1535                        <<" id:"<<XJ_shm_infos[i].shmid
     1536                        <<", addr:"<<(void*)XJ_shm_infos[i].shmaddr);
    15301537                if (use_xv)
    15311538                    ((XvImage*)image)->data = XJ_shm_infos[i].shmaddr;
    15321539                else
     
    32693276    {
    32703277        for (uint i = 0; i < vbuffers.allocSize(); i++)
    32713278        {
     3279            VERBOSE(VB_IMPORTANT, "clear_xv_buffers(width:"<<width
     3280                    <<", height:"<<height<<") i:"<<i
     3281                    <<" addr:"<<((void*)vbuffers.at(i)->buf));
    32723282            unsigned char *data = vbuffers.at(i)->buf;
    32733283            bzero(data, width * height);
    32743284            memset(data + width * height, 127,