Fix broken video on Galaxy S5 and Note III

This commit is contained in:
Cameron Gutman
2015-12-17 03:35:39 -08:00
parent ed8305b199
commit ab8779086b
2 changed files with 28 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ import com.limelight.binding.input.evdev.EvdevListener;
import com.limelight.binding.input.evdev.EvdevWatcher;
import com.limelight.binding.video.EnhancedDecoderRenderer;
import com.limelight.binding.video.MediaCodecDecoderRenderer;
import com.limelight.binding.video.MediaCodecHelper;
import com.limelight.nvstream.NvConnection;
import com.limelight.nvstream.NvConnectionListener;
import com.limelight.nvstream.StreamConfiguration;
@@ -198,6 +199,9 @@ public class Game extends Activity implements SurfaceHolder.Callback,
return;
}
// Initialize the MediaCodec helper before creating the decoder
MediaCodecHelper.initializeWithContext(this);
decoderRenderer = new MediaCodecDecoderRenderer(prefConfig.videoFormat);
// Display a message to the user if H.265 was forced on but we still didn't find a decoder