summaryrefslogtreecommitdiff
path: root/src/media_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/media_video.c')
-rw-r--r--src/media_video.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/media_video.c b/src/media_video.c
index 276f0a4..bdfdc7d 100644
--- a/src/media_video.c
+++ b/src/media_video.c
@@ -29,9 +29,6 @@
#define LOG_TAG "TIZEN_N_MEDIACONTENT"
-extern MediaSvcHandle* db_handle;
-
-
int video_meta_destroy(video_meta_h video)
{
int ret;
@@ -467,7 +464,7 @@ int video_meta_update_time_played_to_db(video_meta_h video, int time_played)
if(_video != NULL )
{
- ret = minfo_update_video_meta_info_int(db_handle,_video->video_id,MINFO_VIDEO_META_BOOKMARK_LAST_PLAYED,time_played);
+ ret = minfo_update_video_meta_info_int(_content_get_db_handle(),_video->video_id,MINFO_VIDEO_META_BOOKMARK_LAST_PLAYED,time_played);
ret = _content_error_capi(MEDIA_CONTENT_TYPE,ret);
}
else
@@ -704,7 +701,7 @@ int video_bookmark_insert_to_db(video_meta_h video, time_t time, const char* thu
if(_video != NULL)
{
- ret = minfo_add_bookmark(db_handle,_video->video_id,time,thumbnail_path);
+ ret = minfo_add_bookmark(_content_get_db_handle(),_video->video_id,time,thumbnail_path);
ret = _content_error_capi(MEDIA_CONTENT_TYPE,ret);
}
else
@@ -725,7 +722,7 @@ int video_bookmark_delete_from_db(video_bookmark_h bookmark)
if( _bookmark != NULL)
{
- ret = minfo_delete_bookmark(db_handle,_bookmark->bookmark_id);
+ ret = minfo_delete_bookmark(_content_get_db_handle(),_bookmark->bookmark_id);
ret = _content_error_capi(MEDIA_CONTENT_TYPE,ret);
}
else