From fada58a21be01913a8e3f25c898d26d2fc8ba630 Mon Sep 17 00:00:00 2001 From: James Dong Date: Thu, 21 Jul 2011 17:32:55 -0700 Subject: Log setVideoSurface() and setVideoSurfaceTexture() failures. Change-Id: Iaea34e74a0cf569fc85b926949253dea6baa6142 related-to-bug: 5063370 --- media/libmedia/mediaplayer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'media/libmedia/mediaplayer.cpp') diff --git a/media/libmedia/mediaplayer.cpp b/media/libmedia/mediaplayer.cpp index 178039c..f1a6041 100644 --- a/media/libmedia/mediaplayer.cpp +++ b/media/libmedia/mediaplayer.cpp @@ -226,6 +226,7 @@ status_t MediaPlayer::setVideoSurface(const sp& surface) NATIVE_WINDOW_API_MEDIA); if (err != OK) { + LOGE("setVideoSurface failed: %d", err); // Note that we must do the reset before disconnecting from the ANW. // Otherwise queue/dequeue calls could be made on the disconnected // ANW, which may result in errors. @@ -275,6 +276,7 @@ status_t MediaPlayer::setVideoSurfaceTexture( NATIVE_WINDOW_API_MEDIA); if (err != OK) { + LOGE("setVideoSurfaceTexture failed: %d", err); // Note that we must do the reset before disconnecting from the ANW. // Otherwise queue/dequeue calls could be made on the disconnected // ANW, which may result in errors. -- cgit v1.1