From 65538dde3dbf91ec1c3cc1e2e20fb8122968b361 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Thu, 25 Dec 2014 18:18:56 +0100 Subject: [PATCH] movieplayer: fix invalid casts for debug messages Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/bfdeda09836997cd129c800a0bae3e383368f9ea Author: Stefan Seyfried Date: 2014-12-25 (Thu, 25 Dec 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/movieplayer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index c95420328..42706d2f4 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -637,7 +637,7 @@ bool CMoviePlayerGui::PlayBackgroundStart(const std::string &file, const std::st fprintf(stderr, "ERROR: pthread_create(%s)\n", __func__); } else PlayFileEnd(); - printf("%s: this %x started: res %d thread %x\n", __func__, (int) this, res, (int) CMoviePlayerGui::bgPlayThread);fflush(stdout); + printf("%s: this %p started: res %d thread %p\n", __func__, this, res, CMoviePlayerGui::bgPlayThread);fflush(stdout); return res; } @@ -648,7 +648,7 @@ void CMoviePlayerGui::stopPlayBack(void) repeat_mode = REPEAT_OFF; if (bgThread) { - printf("%s: this %x join background thread %x\n", __func__, (int) this, (int) CMoviePlayerGui::bgPlayThread);fflush(stdout); + printf("%s: this %p join background thread %p\n", __func__, this, CMoviePlayerGui::bgPlayThread);fflush(stdout); cond.broadcast(); pthread_join(bgThread, NULL); bgThread = 0; @@ -1059,7 +1059,7 @@ void CMoviePlayerGui::PlayFileLoop(void) } } } - printf("CMoviePlayerGui::PlayFile: exit, isMovieBrowser %d p_movie_info %x\n", isMovieBrowser, (int) p_movie_info); + printf("CMoviePlayerGui::PlayFile: exit, isMovieBrowser %d p_movie_info %p\n", isMovieBrowser, p_movie_info); playstate = CMoviePlayerGui::STOPPED; handleMovieBrowser((neutrino_msg_t) g_settings.mpkey_stop, position); if (position >= 300000 || (duration < 300000 && (position > (duration /2)))) @@ -1076,7 +1076,7 @@ void CMoviePlayerGui::PlayFileLoop(void) void CMoviePlayerGui::PlayFileEnd(bool restore) { - printf("%s: stopping, this %x thread %x\n", __func__, (int) this, (int) CMoviePlayerGui::bgPlayThread);fflush(stdout); + printf("%s: stopping, this %p thread %p\n", __func__, this, CMoviePlayerGui::bgPlayThread);fflush(stdout); if (filelist_it == filelist.end()) FileTime.kill(); clearSubtitle();