OMX_COLOR_FORMATTYPE type;
} VideoNegotiationMap;
+static void
+video_negotiation_map_free (VideoNegotiationMap * m)
+{
+ g_slice_free (VideoNegotiationMap, m);
+}
+
static gboolean
gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
{
if (gst_caps_is_empty (intersection)) {
gst_caps_unref (intersection);
GST_ERROR_OBJECT (self, "Empty caps");
+ g_list_free_full (negotiation_map,
+ (GDestroyNotify) video_negotiation_map_free);
return FALSE;
}
gst_video_format_from_string (format_str)) ==
GST_VIDEO_FORMAT_UNKNOWN) {
GST_ERROR_OBJECT (self, "Invalid caps: %" GST_PTR_FORMAT, intersection);
+ g_list_free_full (negotiation_map,
+ (GDestroyNotify) video_negotiation_map_free);
return FALSE;
}
/* We must find something here */
g_assert (l != NULL);
+ g_list_free_full (negotiation_map,
+ (GDestroyNotify) video_negotiation_map_free);
/* Reset framerate, we only care about the color format here */
param.xFramerate = 0;