DescriptionCast: Fix threading issues in VideoEncoderImpl
VideoEncoderImpl can be used after delete. We assumed that main thread
out-live video encoder thread. This is not true for some use cases. For
example in the renderer when video encoder thread is shared by multiple
instances of CastSEnder. To fix this we need to separate Vp8Encoder and
VideoEncoderImpl.
VideoEncoderImpl will live on the main thread only. And Vp8Encoder will
live on the video encoder thread only.
Tested this change with vagrind and cast_unittests reports no error.
TBR=mikhal@chromium.org
BUG=336887
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246974
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247092
Patch Set 1 #Patch Set 2 : upload again #Patch Set 3 : upload again #Patch Set 4 : bad merge now fixed #
Messages
Total messages: 12 (0 generated)
|