OMX_FIFO_PEEK(&p_sys->out.fifo, p_header);
if(!p_header) break; /* No frame available */
+ if(p_sys->out.b_update_def)
+ {
+ omx_error = GetPortDefinition(p_dec, &p_sys->out, p_sys->out.p_fmt);
+ p_sys->out.b_update_def = 0;
+ }
+
if(p_header->nFilledLen)
{
p_pic = p_header->pAppPrivate;
for(i = 0; i < p_sys->ports; i++)
{
OmxPort *p_port = &p_sys->p_ports[i];
- if(!p_port->b_reconfigure) continue;
- p_port->b_reconfigure = 0;
- omx_error = PortReconfigure(p_dec, p_port);
+ if(p_port->b_reconfigure)
+ {
+ omx_error = PortReconfigure(p_dec, p_port);
+ p_port->b_reconfigure = 0;
+ }
+ if(p_port->b_update_def)
+ {
+ omx_error = GetPortDefinition(p_dec, p_port, p_port->p_fmt);
+ p_port->b_update_def = 0;
+ }
}
return p_pic;
p_sys->sentinel_buffer.nFlags = OMX_BUFFERFLAG_EOS;
OMX_FIFO_PUT(&p_sys->in.fifo, &p_sys->sentinel_buffer);
}
+ else if( data_2 == OMX_IndexConfigCommonOutputCrop )
+ {
+ for(i = 0; i < p_sys->ports; i++)
+ if(p_sys->p_ports[i].definition.nPortIndex == data_1)
+ p_sys->p_ports[i].b_update_def = true;
+ }
else
{
msg_Dbg( p_dec, "Unhandled setting change %x", (unsigned int)data_2 );