Index: Source/web/WebMediaPlayerClientImpl.cpp |
diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp |
index 8b629ef2e3bc333bc888b04ea9d646b8c24e2ddb..d2d22336352cf4dd73465907795f99aea17d0584 100644 |
--- a/Source/web/WebMediaPlayerClientImpl.cpp |
+++ b/Source/web/WebMediaPlayerClientImpl.cpp |
@@ -5,7 +5,6 @@ |
#include "config.h" |
#include "WebMediaPlayerClientImpl.h" |
-#include "InbandTextTrackPrivateImpl.h" |
#include "MediaSourcePrivateImpl.h" |
#include "WebDocument.h" |
#include "WebFrameClient.h" |
@@ -197,15 +196,12 @@ void WebMediaPlayerClientImpl::setWebLayer(WebLayer* layer) |
void WebMediaPlayerClientImpl::addTextTrack(WebInbandTextTrack* textTrack) |
{ |
- m_client->mediaPlayerDidAddTrack(adoptRef(new InbandTextTrackPrivateImpl(textTrack))); |
+ m_client->mediaPlayerDidAddTrack(textTrack); |
} |
void WebMediaPlayerClientImpl::removeTextTrack(WebInbandTextTrack* textTrack) |
{ |
- // The following static_cast is safe, because we created the object with the textTrack |
- // that was passed to addTextTrack. (The object from which we are downcasting includes |
- // WebInbandTextTrack as one of the intefaces from which inherits.) |
- m_client->mediaPlayerDidRemoveTrack(static_cast<InbandTextTrackPrivateImpl*>(textTrack->client())); |
+ m_client->mediaPlayerDidRemoveTrack(textTrack); |
} |
void WebMediaPlayerClientImpl::mediaSourceOpened(WebMediaSource* webMediaSource) |