_media->video_meta->played_count = sqlite3_column_int(stmt, MEDIA_INFO_PLAYED_COUNT);
_media->video_meta->played_time = sqlite3_column_int(stmt, MEDIA_INFO_LAST_PLAYED_TIME);
_media->video_meta->played_position = sqlite3_column_int(stmt, MEDIA_INFO_LAST_PLAYED_POSITION);
+ _media->video_meta->rotation = sqlite3_column_int(stmt, MEDIA_INFO_ORIENTATION);
}
} else if ((_media->media_type == MEDIA_CONTENT_TYPE_MUSIC) || (_media->media_type == MEDIA_CONTENT_TYPE_SOUND)) {
_dst->video_meta->played_count = _src->video_meta->played_count;
_dst->video_meta->played_time = _src->video_meta->played_time;
_dst->video_meta->played_position = _src->video_meta->played_position;
+ _dst->video_meta->rotation = _src->video_meta->rotation;
} else if ((_src->media_type == MEDIA_CONTENT_TYPE_MUSIC || _src->media_type == MEDIA_CONTENT_TYPE_SOUND) && _src->audio_meta) {
_dst->audio_meta = (audio_meta_s *)calloc(1, sizeof(audio_meta_s));
_video->played_count = _media->video_meta->played_count;
_video->played_time = _media->video_meta->played_time;
_video->played_position = _media->video_meta->played_position;
+ _video->rotation = _media->video_meta->rotation;
*video = (video_meta_h)_video;
_dst->played_count = _src->played_count;
_dst->played_time = _src->played_time;
_dst->played_position = _src->played_position;
+ _dst->rotation = _src->rotation;
*dst = (video_meta_h)_dst;
return ret;
}
+int video_meta_get_rotation(video_meta_h video, int *rotation)
+{
+ int ret = MEDIA_CONTENT_ERROR_NONE;
+ video_meta_s *_video = (video_meta_s*)video;
+ if (_video && rotation) {
+ *rotation = _video->rotation;
+ ret = MEDIA_CONTENT_ERROR_NONE;
+ } else {
+ media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
+ ret = MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
+ }
+
+ return ret;
+}
+
+
int video_meta_get_played_count(video_meta_h video, int *played_count)
{
int ret = MEDIA_CONTENT_ERROR_NONE;