diff --git a/mythtv/libs/libmythtv/privatedecoder_omx.cpp b/mythtv/libs/libmythtv/privatedecoder_omx.cpp
index b9a2ffc..8ea02bf 100644
a
|
b
|
bool PrivateDecoderOMX::Init(const QString &decoder, PlayerFlags flags, |
281 | 281 | } |
282 | 282 | avctx->pix_fmt = AV_PIX_FMT_YUV420P; // == FMT_YV12 |
283 | 283 | |
| 284 | // Update input buffers (default is 20 preset in OMX) |
| 285 | m_videc.GetPortDef(0); |
| 286 | OMX_PARAM_PORTDEFINITIONTYPE &indef = m_videc.PortDef(0); |
| 287 | OMX_U32 inputBuffers |
| 288 | = OMX_U32(gCoreContext->GetNumSetting("OmxInputBuffers", 25)); |
| 289 | if (inputBuffers > 0U |
| 290 | && inputBuffers != indef.nBufferCountActual |
| 291 | && inputBuffers > indef.nBufferCountMin) |
| 292 | { |
| 293 | indef.nBufferCountActual = inputBuffers; |
| 294 | e = m_videc.SetParameter(OMX_IndexParamPortDefinition, &indef); |
| 295 | if (e != OMX_ErrorNone) |
| 296 | { |
| 297 | LOG(VB_PLAYBACK, LOG_ERR, LOC + QString( |
| 298 | "Set input IndexParamPortDefinition error %1") |
| 299 | .arg(Error2String(e))); |
| 300 | return false; |
| 301 | } |
| 302 | } |
| 303 | m_videc.GetPortDef(0); |
| 304 | m_videc.ShowPortDef(0, LOG_INFO); |
| 305 | |
284 | 306 | // Ensure at least 2 output buffers |
285 | 307 | OMX_PARAM_PORTDEFINITIONTYPE &def = m_videc.PortDef(1); |
286 | 308 | if (def.nBufferCountActual < 2U || |
… |
… |
bool PrivateDecoderOMX::Init(const QString &decoder, PlayerFlags flags, |
296 | 318 | return false; |
297 | 319 | } |
298 | 320 | } |
| 321 | m_videc.GetPortDef(0); |
| 322 | m_videc.ShowPortDef(1, LOG_INFO); |
299 | 323 | |
300 | 324 | // Goto OMX_StateIdle & allocate all buffers |
301 | 325 | // This generates an error if fmt.eCompressionFormat is not supported |