fix for caps _normalize changes

This commit is contained in:
Wim Taymans 2012-03-12 12:23:15 +01:00
parent eb03b4de55
commit 075cd54019
3 changed files with 1 additions and 4 deletions

View file

@ -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"); GST_DEBUG_OBJECT (dec, "... but no peer, using template caps");
/* need to copy because get_allowed_caps returns a ref, /* need to copy because get_allowed_caps returns a ref,
* and get_pad_template_caps doesn't */ * 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 */ /* avoid lists of formats, etc */
allowed_caps = gst_caps_normalize (caps); allowed_caps = gst_caps_normalize (caps);
gst_caps_unref (caps);
caps = NULL; caps = NULL;
GST_LOG_OBJECT (dec, "allowed source caps %" GST_PTR_FORMAT, allowed_caps); GST_LOG_OBJECT (dec, "allowed source caps %" GST_PTR_FORMAT, allowed_caps);

View file

@ -47,7 +47,6 @@ video_crop_get_test_caps (GstElement * videocrop)
fail_unless (templ != NULL); fail_unless (templ != NULL);
allowed_caps = gst_caps_normalize (templ); allowed_caps = gst_caps_normalize (templ);
gst_caps_unref (templ);
for (i = 0; i < gst_caps_get_size (allowed_caps); ++i) { for (i = 0; i < gst_caps_get_size (allowed_caps); ++i) {
GstStructure *new_structure; GstStructure *new_structure;

View file

@ -141,7 +141,6 @@ check_filter (const gchar * name, gint num_buffers, const gchar * prop, ...)
va_list varargs; va_list varargs;
allcaps = gst_caps_normalize (templ); allcaps = gst_caps_normalize (templ);
gst_caps_unref (templ);
n = gst_caps_get_size (allcaps); n = gst_caps_get_size (allcaps);