omx: Only unref caps after usage of its fields

This commit is contained in:
Sebastian Dröge 2013-03-14 15:03:02 +01:00
parent bda1e97abd
commit 02335ef953
3 changed files with 6 additions and 6 deletions

View file

@ -197,13 +197,13 @@ gst_omx_h263_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port,
return TRUE;
unsupported_profile:
gst_caps_unref (peercaps);
GST_ERROR_OBJECT (self, "Unsupported profile %u", profile_id);
gst_caps_unref (peercaps);
return FALSE;
unsupported_level:
gst_caps_unref (peercaps);
GST_ERROR_OBJECT (self, "Unsupported level %u", level_id);
gst_caps_unref (peercaps);
return FALSE;
}

View file

@ -200,13 +200,13 @@ gst_omx_h264_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port,
return TRUE;
unsupported_profile:
gst_caps_unref (peercaps);
GST_ERROR_OBJECT (self, "Unsupported profile %s", profile_string);
gst_caps_unref (peercaps);
return FALSE;
unsupported_level:
gst_caps_unref (peercaps);
GST_ERROR_OBJECT (self, "Unsupported level %s", level_string);
gst_caps_unref (peercaps);
return FALSE;
}

View file

@ -207,13 +207,13 @@ gst_omx_mpeg4_video_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port,
return TRUE;
unsupported_profile:
gst_caps_unref (intersection);
GST_ERROR_OBJECT (self, "Unsupported profile %s", profile_string);
gst_caps_unref (intersection);
return FALSE;
unsupported_level:
gst_caps_unref (intersection);
GST_ERROR_OBJECT (self, "Unsupported level %s", level_string);
gst_caps_unref (intersection);
return FALSE;
}