dashplayer: Fix for pause-resume-pause usecase

When pause-resume-pause is queued in fast, second pause
can assert fail in renderer. Happens because pause flag is set
when pause cmd comes but resume flag is set in resume
callback from source. By time resume returns, second pause asserts.

-Fix to remove resume callback path and serialize renderer->pause,
renderer->resume in kwhatpause/kwhatresume as cmds come in itself
-discontinuity flag check made in kwhatresume itself

Change-Id: I1641417ac34c13415eb6b70f00071cca0691bd61
dashplayer: support dynamic null surface

support dynamic setting of null
native window

Change-Id: I5c9356014a1dcaf264d93b07fd4dcaf4733e4ade
CRs-Fixed: 608151
msm: venc: Enable/Disable buffer logging at runtime

Buffer logs can be enabled and disabled at runtime with following
properties:
1. setprop vidc.enc.log.out 1
2. setprop vidc.enc.log.in 1
Default location for collecting logs is /data/misc/media
Log file names are in following format:
  input_dec_<width>_<height>_<inst_ptr>.yuv
  output_dec_<width>_<height>_<inst_ptr>.<codec>

CRs-Fixed: 524234
Change-Id: I4d00e95644adc337932d2b8fd97940b04d22f962
mm-video: vidc: Add extradata logging support for encoder

Running `setprop vidc.enc.log.extradata 1` allows for the extradata to
be dumped into /data/misc/media/.

Change-Id: I9a806df5364adf78b8bd50d5a519314a738ac88a
mm-video: vidc: Adds NULL check for ETB buffer

Meta buffers needs to check against NULL address.
This change adds the check and returns error if NULL
buffer is queued to component.

CRs-Fixed: 590745

Change-Id: I8483e2b19e348c1c50bb4245bfd02419983b022e
mm-video: vdec: avoid set metadata after free buffer

In some use cases client frees output buffers before it gets
all FBD's, in this process component clears output buffer
structures it has for current session. Code dependent on
these structures results in crash if it executes after free
buffer. This change checks for such condition and avoids
the same.

CRs-fixed: 614669
Change-Id: Ia2b76425ebc49721beae2f02f5677d18dbff90a2
mm-video: vidc: vdec: set frame interlace based on firmware flag

Avoid depending on OMX Component h264 parser to read the mbaff
information. Instead the firmware will read mbaff information
and mark the fbd as interlace or progressive.

Change-Id: Icc68f9354f6baf4e5357af9379c05b851e5fecdd