Move disconnection into handler thread

Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com>
camera2
begeekmyfriend 8 years ago
parent fd27c36c4f
commit 9a3984d463

@ -187,7 +187,6 @@ public class SrsFlvMuxer {
} }
flv.reset(); flv.reset();
needToFindKeyFrame = true; needToFindKeyFrame = true;
disconnect();
Log.i(TAG, "SrsFlvMuxer closed"); Log.i(TAG, "SrsFlvMuxer closed");
// We should not block the main thread // We should not block the main thread
new Thread(new Runnable() { new Thread(new Runnable() {

Loading…
Cancel
Save