Skip to content
Snippets Groups Projects
Commit 9d992ad4 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

LibVLC: keep context instance

parent 1d138efb
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ import java.util.ArrayList;
@SuppressWarnings("unused, JniMissingFunction")
public class LibVLC extends VLCObject<LibVLC.Event> {
private static final String TAG = "VLC/LibVLC";
final Context mAppContext;
public static class Event extends VLCEvent {
protected Event(int type) {
......@@ -45,6 +46,7 @@ public class LibVLC extends VLCObject<LibVLC.Event> {
* @param options
*/
public LibVLC(Context context, ArrayList<String> options) {
mAppContext = context.getApplicationContext();
loadLibraries();
if (options == null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment