Commit 075cd540 authored by Wim Taymans's avatar Wim Taymans
Browse files

fix for caps _normalize changes

parent eb03b4de
......@@ -1258,11 +1258,10 @@ gst_jpeg_dec_negotiate (GstJpegDec * dec, gint width, gint height, gint clrspc)
GST_DEBUG_OBJECT (dec, "... but no peer, using template caps");
/* need to copy because get_allowed_caps returns a ref,
* and get_pad_template_caps doesn't */
caps = gst_caps_copy (gst_pad_get_pad_template_caps (dec->srcpad));
caps = gst_pad_get_pad_template_caps (dec->srcpad);
}
/* avoid lists of formats, etc */
allowed_caps = gst_caps_normalize (caps);
gst_caps_unref (caps);
caps = NULL;
GST_LOG_OBJECT (dec, "allowed source caps %" GST_PTR_FORMAT, allowed_caps);
......
......@@ -47,7 +47,6 @@ video_crop_get_test_caps (GstElement * videocrop)
fail_unless (templ != NULL);
allowed_caps = gst_caps_normalize (templ);
gst_caps_unref (templ);
for (i = 0; i < gst_caps_get_size (allowed_caps); ++i) {
GstStructure *new_structure;
......
......@@ -141,7 +141,6 @@ check_filter (const gchar * name, gint num_buffers, const gchar * prop, ...)
va_list varargs;
allcaps = gst_caps_normalize (templ);
gst_caps_unref (templ);
n = gst_caps_get_size (allcaps);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment