xbmc-imx6/xbmc — pull request #46 by wolfgar (2014-03-18 03:19:12+00:00)
Title: Add queue to track dts

This is not for immediate merge but is a draft to handle dts instead of poorly reverting to NO_PTS as underlined in #32
Basically it revives chris queue to track dts when no pts is available (as dts are ordered the queue is not sorted).
So, now when no pts is available the player will be able to use provided dts instead...

As a bonus the following patch for libfslvpuwrap-3.5.7 enables the vc1 sample studied #42 to play fine...

```
--- ../lbvpu-orig/libfslvpuwrap-3.5.7-1.0.0/vpu_wrapper.c 2013-06-20 19:45:26.000000000 +0200
+++ vpu_wrapper.c 2014-03-18 04:07:54.708854448 +0100
@@ -3110,6 +3110,8 @@
//Test_1440x576_WVC1_6Mbps.wmv: skip frame, already is set to disp state ??
//do nothing, only output error log
VPU_ERROR("error: output one frame not decoded at all !!!!!(may be in disp/free state) \r\n");
+ //FIXME SR : Do not output display frame as it is already freed...
+ outInfo.indexFrameDisplay=VPU_OUT_DIS_INDEX_NODIS;
}
else if((pObj->CodecFormat==VPU_V_MPEG4)
||(pObj->CodecFormat==VPU_V_DIVX4)
@@ -5053,6 +5055,8 @@
case VPU_V_MPEG4:
case VPU_V_AVC:
case VPU_V_MPEG2:
+ case VPU_V_VC1_AP:
+ case VPU_V_VC1:
pObj->nDecFrameRptEnabled=1;
pObj->nDecResolutionChangeEnabled=1;
break;

```