Trying to set the profile property in the h264 encoder you will get a
segmentation fault cause the omx handle for the encoder component has not been
previously initialized or obtained, patch attached to this post uses the
g_omx_core_get_handle function to check if the handle was already obtained first
before to use it, solving the problem.