mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1188871: P2. Call DrainComplete should an error occurs while draining. r=snorp
Part 1 prevented draining when an error occurred first. This handles the case where an error occurs during draining.
This commit is contained in:
parent
c6fcd44f2d
commit
144aceffe9
@ -393,6 +393,10 @@ nsresult MediaCodecDataDecoder::InitDecoder(Surface::Param aSurface)
|
||||
#define HANDLE_DECODER_ERROR() \
|
||||
if (NS_FAILED(res)) { \
|
||||
NS_WARNING("exiting decoder loop due to exception"); \
|
||||
if (mDraining) { \
|
||||
ENVOKE_CALLBACK(DrainComplete); \
|
||||
mDraining = false; \
|
||||
} \
|
||||
ENVOKE_CALLBACK(Error); \
|
||||
break; \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user