summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 611ac6e)
raw | patch | inline | side by side (parent: 611ac6e)
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | |
Thu, 24 Nov 2011 10:15:29 +0000 (11:15 +0100) | ||
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | |
Thu, 24 Nov 2011 10:15:29 +0000 (11:15 +0100) |
This check is correct but unfortunately it's impossible to implement
in a threadsafe way because the caps could have changed in the meantime.
Fixes bug #659606.
in a threadsafe way because the caps could have changed in the meantime.
Fixes bug #659606.
gst/gstpad.c | patch | blob | history |
diff --git a/gst/gstpad.c b/gst/gstpad.c
index 01937e6f1d4e6ab143e15f9aa25960f34c1871dc..206c54586f36083d81f4d8eb689a25eebcf18976 100644 (file)
--- a/gst/gstpad.c
+++ b/gst/gstpad.c
GST_DEBUG_OBJECT (pad, "default acceptcaps returned %d", result);
}
-#ifndef G_DISABLE_ASSERT
- if (result) {
- GstCaps *padcaps;
-
- padcaps = gst_pad_get_caps_reffed (pad);
- if (!gst_caps_is_subset (caps, padcaps)) {
- gchar *padcaps_str, *caps_str;
-
- padcaps_str = gst_caps_to_string (padcaps);
- caps_str = gst_caps_to_string (caps);
- g_warning ("pad %s:%s accepted caps %s although "
- "they are not a subset of its caps %s",
- GST_DEBUG_PAD_NAME (pad), caps_str, padcaps_str);
- g_free (padcaps_str);
- g_free (caps_str);
- }
- gst_caps_unref (padcaps);
- }
-#endif
-
return result;
is_same_caps: