summaryrefslogtreecommitdiffstats
path: root/media/cast/cast_sender_impl.cc
diff options
context:
space:
mode:
authorpwestin@google.com <pwestin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-19 10:33:48 +0000
committerpwestin@google.com <pwestin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-19 10:33:48 +0000
commit860412b9904bbf49d67473cd0285e7e2847bc91f (patch)
treee5cb4fc694bbd73ddd9ec73971832fd89a482d11 /media/cast/cast_sender_impl.cc
parent990ebf179de71b951e063042797218aeb243c667 (diff)
downloadchromium_src-860412b9904bbf49d67473cd0285e7e2847bc91f.zip
chromium_src-860412b9904bbf49d67473cd0285e7e2847bc91f.tar.gz
chromium_src-860412b9904bbf49d67473cd0285e7e2847bc91f.tar.bz2
Added end2end test.
Review URL: https://codereview.chromium.org/25554002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229537 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/cast_sender_impl.cc')
-rw-r--r--media/cast/cast_sender_impl.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/media/cast/cast_sender_impl.cc b/media/cast/cast_sender_impl.cc
index b92bc6c..6eedf72 100644
--- a/media/cast/cast_sender_impl.cc
+++ b/media/cast/cast_sender_impl.cc
@@ -11,6 +11,19 @@
namespace media {
namespace cast {
+// static
+void FrameInput::DeleteAudioFrame(const PcmAudioFrame* frame) {
+ delete frame;
+}
+
+// static
+void FrameInput::DeleteVideoFrame(const I420VideoFrame* video_frame) {
+ delete [] video_frame->y_plane.data;
+ delete [] video_frame->u_plane.data;
+ delete [] video_frame->v_plane.data;
+ delete video_frame;
+}
+
// The LocalFrameInput class posts all incoming frames; audio and video to the
// main cast thread for processing.
// This make the cast sender interface thread safe.