y4m_video_source: fix memory leak
authorJames Zern <jzern@google.com>
Thu, 27 Feb 2014 07:27:17 +0000 (23:27 -0800)
committerJames Zern <jzern@google.com>
Thu, 27 Feb 2014 07:27:17 +0000 (23:27 -0800)
commitf651bcb296f6ea15217056487c904689d57a0d0f
treeed5c6db28e643d05caf6566b7f631b84612e39c9
parent104d8ec034729183f9c1bb80aea6ae546276e152
y4m_video_source: fix memory leak

Begin() will be called twice with 2-pass encodes, invoking
y4m_input_open which allocates memory; close the old instance first.

Change-Id: Id252a21d286ca9ae998bd87599d43aeb8d7d77aa
test/y4m_video_source.h