File tree Expand file tree Collapse file tree
android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ public class CallingActivity extends AppCompatActivity implements CameraWrapper.
224224 private static int BUFFER_DEQUEUE_TIMEOUT_US = 0 ; // "us" fetch encoded data from encoder
225225 private static int BUFFER_DEQUEUE_FEEDER_TIMEOUT_US = 0 ; // "us" feed raw data to encoder
226226
227- // static Object VIDEO_ROTATION_LOCK = new Object();
227+ static Object VIDEO_ROTATION_LOCK = new Object ();
228228
229229 @ Override
230230 protected void onCreate (Bundle savedInstanceState )
@@ -2275,7 +2275,7 @@ else if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER)
22752275 //Log.d(TAG, "onSensorChanged: x=" + event.values[0] + " y=" + event.values[1] + " z=" +
22762276 // event.values[2]);
22772277
2278- //*DISABLE*// synchronized(VIDEO_ROTATION_LOCK)
2278+ synchronized (VIDEO_ROTATION_LOCK )
22792279 {
22802280 float x = event .values [0 ];
22812281 float y = event .values [1 ];
Original file line number Diff line number Diff line change 1010import android .view .MotionEvent ;
1111import android .view .View ;
1212
13- // import static com.zoffcc.applications.trifa.CallingActivity.VIDEO_ROTATION_LOCK;
13+ import static com .zoffcc .applications .trifa .CallingActivity .VIDEO_ROTATION_LOCK ;
1414import static com .zoffcc .applications .trifa .CallingActivity .device_orientation ;
1515import static com .zoffcc .applications .trifa .MainActivity .PREF__X_zoom_incoming_video ;
1616
@@ -118,7 +118,7 @@ public static void video_output_orentation_update()
118118
119119 public void setBitmap (Bitmap bitmap )
120120 {
121- //*DISABLE*// synchronized(VIDEO_ROTATION_LOCK)
121+ synchronized (VIDEO_ROTATION_LOCK )
122122 {
123123 if (bitmap != null )
124124 {
You can’t perform that action at this time.
0 commit comments