/** * Parse the media synchronously with a flag. This Media should be alive (not released). * * @param flags see {@link Parse} * @return true in case of success, false otherwise. */ public boolean parse(int flags) { boolean parse = false; synchronized (this) { if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) { mParseStatus |= PARSE_STATUS_PARSING; parse = true; } } if (parse && nativeParse(flags)) { postParse(); return true; } else return false; }
/** * Parse the media synchronously with a flag. This Media should be alive (not released). * * @param flags see {@link Parse} * @return true in case of success, false otherwise. */ public boolean parse(int flags) { boolean parse = false; synchronized (this) { if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) { mParseStatus |= PARSE_STATUS_PARSING; parse = true; } } if (parse && nativeParse(flags)) { postParse(); return true; } else return false; }
/** * Parse the media synchronously with a flag. This Media should be alive (not released). * * @param flags see {@link Parse} * @return true in case of success, false otherwise. */ public boolean parse(int flags) { boolean parse = false; synchronized (this) { if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) { mParseStatus |= PARSE_STATUS_PARSING; parse = true; } } if (parse && nativeParse(flags)) { postParse(); return true; } else return false; }
/** * Parse the media synchronously with a flag. This Media should be alive (not released). * * @param flags see {@link Parse} * @return true in case of success, false otherwise. */ public boolean parse(int flags) { boolean parse = false; synchronized (this) { if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) { mParseStatus |= PARSE_STATUS_PARSING; parse = true; } } if (parse && nativeParse(flags)) { postParse(); return true; } else return false; }
/** * Parse the media synchronously with a flag. This Media should be alive (not released). * * @param flags see {@link Parse} * @return true in case of success, false otherwise. */ public boolean parse(int flags) { boolean parse = false; synchronized (this) { if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) { mParseStatus |= PARSE_STATUS_PARSING; parse = true; } } if (parse && nativeParse(flags)) { postParse(); return true; } else return false; }