Replace GST_ERROR function with GST_ELEMENT_ERROR. Elements will use this
function if they encountered a fatal processing error. The pipeline will post an
error message and the application will be requested to stop further
In addition to this, we no longer need to add --gst-debug=TI*:2 in pipeline to
display the error message on console. With this change error message will be
displayed on console or application can moniter bus to get those error
Note: This patch depends on DM365 video encoder patch.