vp_dbgW("Get Chapter Count : %d", *nCount);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
nRet = sqlite3_step(stmt);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
nRet = sqlite3_step(stmt);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
nRet = sqlite3_step(stmt);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
sqlite3_step(stmt);
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_reset(stmt);
sqlite3_clear_bindings(stmt);
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
sqlite3_step(stmt);
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_reset(stmt);
sqlite3_clear_bindings(stmt);
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
vp_dbgW("Get Chapter Count : %d", *nCount);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
VP_STRDUP(*szFilePath, (char *) sqlite3_column_text(stmt, 1));
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
*nFileSize = (int) sqlite3_column_int(stmt, 2);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
nRet = sqlite3_step(stmt);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
sqlite3_step(stmt);
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_reset(stmt);
sqlite3_clear_bindings(stmt);
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
sqlite3_step(stmt);
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_reset(stmt);
sqlite3_clear_bindings(stmt);
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
vp_dbgW("Get Thumb Count : %d", *nCount);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
nRet = sqlite3_step(stmt);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
nRet = sqlite3_step(stmt);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
nRet = sqlite3_step(stmt);
}
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
sqlite3_step(stmt);
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_reset(stmt);
sqlite3_clear_bindings(stmt);
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
sqlite3_step(stmt);
- if (stmt) {
+ //if (stmt) { // SVACE issue, pointer dereferenced compared to NULL
sqlite3_reset(stmt);
sqlite3_clear_bindings(stmt);
sqlite3_finalize(stmt);
stmt = NULL;
- }
+ //}
if (szSql) {
sqlite3_free(szSql);
return FALSE;
}
- int nRet = MEDIA_CONTENT_ERROR_NONE;
- nRet = media_info_refresh_metadata_to_db(szMediaID);
+ /* int nRet = MEDIA_CONTENT_ERROR_NONE;
+ nRet = media_info_refresh_metadata_to_db(szMediaID); // Deprecated API, Parent function not called.
if (nRet != MEDIA_CONTENT_ERROR_NONE) {
VideoLogError("media_info_refresh_metadata_to_db fail : %d", nRet);
return FALSE;
- }
+ } */
return TRUE;
}
goto Exception;
}
- nRet = media_info_set_location_tag(pMediaHandle, pLocation);
+ /* nRet = media_info_set_location_tag(pMediaHandle, pLocation); // Deprecated API, Parent function not called.
if (nRet != MEDIA_CONTENT_ERROR_NONE) {
VideoLogError("media_info_set_location_tag is fail : 0x%x", nRet);
goto Exception;
- }
+ } */
nRet = media_info_update_to_db(pMediaHandle);
if (nRet != MEDIA_CONTENT_ERROR_NONE) {
goto Exception;
}
- nRet = media_info_get_location_tag(pMediaHandle, &szLocation);
+ /* nRet = media_info_get_location_tag(pMediaHandle, &szLocation); // Deprecated API, Parent function not called.
if (nRet != MEDIA_CONTENT_ERROR_NONE) {
VideoLogError("media_info_get_location_tag is fail : 0x%x", nRet);
goto Exception;
- }
+ } */
VP_STRDUP(*szLocationTag, szLocation);
VP_FREE(szLocation);
goto Exception;
}
- nRet = media_info_set_weather(pMediaHandle, pWeather);
+ /* nRet = media_info_set_weather(pMediaHandle, pWeather); // Deprecated API, Parent function not called.
if (nRet != MEDIA_CONTENT_ERROR_NONE) {
VideoLogError("media_info_set_weather is fail : 0x%x", nRet);
goto Exception;
- }
+ } */
nRet = media_info_update_to_db(pMediaHandle);
if (nRet != MEDIA_CONTENT_ERROR_NONE) {
goto Exception;
}
- nRet = media_info_get_weather(pMediaHandle, &szWeather);
+ /* nRet = media_info_get_weather(pMediaHandle, &szWeather); // Deprecated API, Parent function not called.
if (nRet != MEDIA_CONTENT_ERROR_NONE) {
VideoLogError("media_info_get_weather is fail : 0x%x", nRet);
goto Exception;
- }
+ } */
VP_STRDUP(*szWeatherTag, szWeather);
VP_FREE(szWeather);
#include "vp-util.h"
#define CAMERA_FOLDER_PATH "/opt/usr/media/Camera"
+#define MEDIA_LAST_PLAYED_TIME "last_played_time"
typedef struct _storage_rec_t storage_rec_s;
VideoLogError("Fail to get pVideoMetaHandle.");
} else {
if (pVideoMetaHandle) {
- video_meta_update_to_db(pVideoMetaHandle);
+ // video_meta_update_to_db(pVideoMetaHandle); // Deprecated API, Parent function not called.
video_meta_destroy(pVideoMetaHandle);
} else {
VideoLogError("No exist pVideoMetaHandle");