Commit a2c8830f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Avoid a crash in AudioService

parent cdb05780
......@@ -114,6 +114,10 @@ public class AudioService extends Service {
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
int state = intent.getIntExtra("state", 0);
if( mLibVLC == null ) {
Log.w(TAG, "Intent received, but VLC is not loaded, skipping.");
return;
}
if (action.equalsIgnoreCase(VLCAppWidgetProvider.ACTION_WIDGET_PLAY)) {
if (mLibVLC.isPlaying() && mCurrentMedia != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment