additional Andrew provided Termux mods +
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / vframe.C
index af0e52a85d1e186fba228ce8bd88777ba2e7855f..44d7f97e6284a3f5f2c333902cc3dfceef930afe 100644 (file)
@@ -334,7 +334,7 @@ if( memory_type != VFrame::SHARED )
                        shmid = -1;
                        break;
 
-               case VFrame::SHMGET:
+               case VFrame::SHM_GET:
                        if(data)
                                shmdt(data);
                        data = 0;
@@ -510,7 +510,7 @@ int VFrame::allocate_data(unsigned char *data, int shmid,
                this->v_offset = v_offset;
        }
        else if( shmid >= 0 ) {
-               memory_type = VFrame::SHMGET;
+               memory_type = VFrame::SHM_GET;
                this->data = (unsigned char*)shmat(shmid, NULL, 0);
                if( this->data == (unsigned char*)-1 ) {
                        printf("VFrame::allocate_data %d could not attach"
@@ -593,7 +593,7 @@ void VFrame::set_memory(unsigned char *data,
        else
        if(shmid >= 0)
        {
-               memory_type = VFrame::SHMGET;
+               memory_type = VFrame::SHM_GET;
                this->data = (unsigned char*)shmat(shmid, NULL, 0);
                this->shmid = shmid;
        }
@@ -635,7 +635,7 @@ void VFrame::set_compressed_memory(unsigned char *data,
        else
        if(shmid >= 0)
        {
-               memory_type = VFrame::SHMGET;
+               memory_type = VFrame::SHM_GET;
                this->data = (unsigned char*)shmat(shmid, NULL, 0);
                this->shmid = shmid;
        }
@@ -713,7 +713,7 @@ UNBUFFER(data);
                        else
                                free(data);
                }
-               else if( memory_type == VFrame::SHMGET ) {
+               else if( memory_type == VFrame::SHM_GET ) {
                        if( data ) shmdt(data);
                }