Commit 27f1d4c8 authored by Thomas Guillem's avatar Thomas Guillem

VlcObject: retain return true if the object can be retained

parent 541ba850
......@@ -136,10 +136,14 @@ public abstract class VLCObject {
/**
* Increment internal ref count of the native object.
* @return true if media is retained
*/
public synchronized final void retain() {
if (mNativeRefCount > 0)
public synchronized final boolean retain() {
if (mNativeRefCount > 0) {
mNativeRefCount++;
return true;
} else
return false;
}
/**
......
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