mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
movieplayer.cpp: fix comiler warning, deprecated timeb, ftime
This commit is contained in:
@@ -2624,10 +2624,9 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
||||
// if we have a movie information, try to save the stop position
|
||||
printf("CMoviePlayerGui::handleMovieBrowser: stop, isMovieBrowser %d p_movie_info %p\n", isMovieBrowser, p_movie_info);
|
||||
if (isMovieBrowser && p_movie_info) {
|
||||
timeb current_time;
|
||||
ftime(¤t_time);
|
||||
p_movie_info->dateOfLastPlay = current_time.time;
|
||||
current_time.time = time(NULL);
|
||||
timeval current_time;
|
||||
gettimeofday(¤t_time, NULL);
|
||||
p_movie_info->dateOfLastPlay = current_time.tv_sec;
|
||||
p_movie_info->bookmarks.lastPlayStop = position / 1000;
|
||||
if (p_movie_info->length == 0) {
|
||||
p_movie_info->length = (float)duration / 60 / 1000 + 0.5;
|
||||
|
Reference in New Issue
Block a user