Use gst_pad_query_caps instead off gst_pad_get_current_caps
Use gst_pad_query_caps instead off gst_pad_get_current_caps

This way the element can be connected before processing the new
caps event

Change-Id: I5f1c044bd96d3f3107fc3d5217dc805f38fbabc6

TribeMedia/kms-core,ESTOS/kms-core,shelsonjava/kms-core,TribeMedia/kms-core,shelsonjava/kms-core,Kurento/kms-core,shelsonjava/kms-core,ESTOS/kms-core,Kurento/kms-core,Kurento/kms-core,KurentoLegacy/gst-kurento-plugins,KurentoLegacy/gst-kurento-plugins,ESTOS/kms-core,shelsonjava/kms-core,KurentoLegacy/gst-kurento-plugins,ESTOS/kms-core,TribeMedia/kms-core,KurentoLegacy/gst-kurento-plugins,Kurento/kms-core,TribeMedia/kms-core