Changeset 4902


Ignore:
Timestamp:
Aug 25, 2014 9:31:24 AM (10 years ago)
Author:
riza
Message:

Re #1762: Change alloc method for preview layer that may cause crash when releasing the object on iOS 7 (arm64).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/ios_dev.m

    r4891 r4902  
    760760                /* Create preview layer */ 
    761761                AVCaptureVideoPreviewLayer *prev_layer = 
    762                             [AVCaptureVideoPreviewLayer 
    763                              layerWithSession:strm->cap_session]; 
     762                            [[AVCaptureVideoPreviewLayer alloc] 
     763                             initWithSession:strm->cap_session]; 
    764764                 
    765765                /* Attach preview layer to a UIView */ 
Note: See TracChangeset for help on using the changeset viewer.