commit | c5bba6cc70f567a3e9b59b1051a2e09614f1d69b | [log] [tgz] |
---|---|---|
author | James Dong <jdong@google.com> | Thu Nov 18 12:23:58 2010 -0800 |
committer | James Dong <jdong@google.com> | Thu Nov 18 12:25:52 2010 -0800 |
tree | 7b4ecdbc9d504e25be66f38d4e0cb32085eed0d7 | |
parent | 7200ab4a8f61b4aed25f9536ae29051e02503563 [diff] |
Fix an issue wherre error notification will not be sent after mediaplayer reset bug - 3198642 Change-Id: Ieab13e12af9fdd0ad0873c522885e1350e7cd24c
diff --git a/media/libmedia/mediaplayer.cpp b/media/libmedia/mediaplayer.cpp index 54b292c0..a098d69 100644 --- a/media/libmedia/mediaplayer.cpp +++ b/media/libmedia/mediaplayer.cpp
@@ -437,6 +437,9 @@ } else { mCurrentState = MEDIA_PLAYER_IDLE; } + // setDataSource has to be called again to create a + // new mediaplayer. + mPlayer = 0; return ret; } clear_l();