dashplayer: Remove cached formats from the proper location

1. Removed cached format/crop from the 0th position.
2. Clear cached formats in destructor.

Change-Id: Idd9c767bf9f660fe8ceae7f99b3ac51861b2a932
mm-video: vdec: ref count the notifications to secure-display

Notifications to display HAL to secure/unsecure display is sent
when component is created/destroyed. When multiple instances
are created/destroyed, the shared flag which indicates status
of such notification can go out-of-sync.
This change ref-counts the secure status flag and protects it
with a lock.

Change-Id: I126c92d16b03819afcbaf2f056928ba792556ed8
mm-video: vidc: Fix an issue in flush for Surfacemediasource_test

When i/p flush is in progress, need to give back all the ETB's
to client as EBD's directly instead of post_event. so do not call
push_input_buffer function.

Change-Id: Id17a84e9a009bbe80ec034c78a78a08b889c394a
CRs-Fixed: 517599
Merge "mm-video: vdec: ref count the notifications to secure-display"
Merge "mm-video: vidc: Fix an issue in flush for Surfacemediasource_test"
Merge "dashplayer: Remove cached formats from the proper location"
mm-video: vidc: Add support for dynamic debug logging

- Add system property for setting the debug level
- Add common macros for vdec, venc for debug logs

debug_level -> 1:ERROR 2:HIGH 4:LOW 0:NOlogs 7:AllLogs
adb shell setprop vidc.debug.level <debug level>

CRs-fixed: 546533
Change-Id: Icc0e6419dc7d740ca92abe7bc921381b31c7d2d3
Merge "mm-video: vidc: Add support for dynamic debug logging"
Merge branch 'jb_2.6_1' of git://codeaurora.org/platform/hardware/qcom/media into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into HEAD