mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
omx: Only unref caps after usage of its fields
This commit is contained in:
parent
bda1e97abd
commit
02335ef953
3 changed files with 6 additions and 6 deletions
|
@ -197,13 +197,13 @@ gst_omx_h263_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
unsupported_profile:
|
unsupported_profile:
|
||||||
gst_caps_unref (peercaps);
|
|
||||||
GST_ERROR_OBJECT (self, "Unsupported profile %u", profile_id);
|
GST_ERROR_OBJECT (self, "Unsupported profile %u", profile_id);
|
||||||
|
gst_caps_unref (peercaps);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
unsupported_level:
|
unsupported_level:
|
||||||
gst_caps_unref (peercaps);
|
|
||||||
GST_ERROR_OBJECT (self, "Unsupported level %u", level_id);
|
GST_ERROR_OBJECT (self, "Unsupported level %u", level_id);
|
||||||
|
gst_caps_unref (peercaps);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -200,13 +200,13 @@ gst_omx_h264_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
unsupported_profile:
|
unsupported_profile:
|
||||||
gst_caps_unref (peercaps);
|
|
||||||
GST_ERROR_OBJECT (self, "Unsupported profile %s", profile_string);
|
GST_ERROR_OBJECT (self, "Unsupported profile %s", profile_string);
|
||||||
|
gst_caps_unref (peercaps);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
unsupported_level:
|
unsupported_level:
|
||||||
gst_caps_unref (peercaps);
|
|
||||||
GST_ERROR_OBJECT (self, "Unsupported level %s", level_string);
|
GST_ERROR_OBJECT (self, "Unsupported level %s", level_string);
|
||||||
|
gst_caps_unref (peercaps);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -207,13 +207,13 @@ gst_omx_mpeg4_video_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
unsupported_profile:
|
unsupported_profile:
|
||||||
gst_caps_unref (intersection);
|
|
||||||
GST_ERROR_OBJECT (self, "Unsupported profile %s", profile_string);
|
GST_ERROR_OBJECT (self, "Unsupported profile %s", profile_string);
|
||||||
|
gst_caps_unref (intersection);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
unsupported_level:
|
unsupported_level:
|
||||||
gst_caps_unref (intersection);
|
|
||||||
GST_ERROR_OBJECT (self, "Unsupported level %s", level_string);
|
GST_ERROR_OBJECT (self, "Unsupported level %s", level_string);
|
||||||
|
gst_caps_unref (intersection);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue