diff options
author | Stefan Kost <ensonic@users.sf.net> | 2010-11-04 11:18:52 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-11-04 11:41:24 +0200 |
commit | 499e6b2be97d0c65c76e47cbcc1f165f23645141 (patch) | |
tree | cb3059e24ba40b919f1fcfba0558b17f12ab471d | |
parent | 2919eb649f0ba9fa173eb78326f146d77415d4bb (diff) |
tracelib: ensure that caps are fixed before comparing
Also avoid comparing caps if they are the same.
-rw-r--r-- | src/gsttracelib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsttracelib.c b/src/gsttracelib.c index af24f9b..d114157 100644 --- a/src/gsttracelib.c +++ b/src/gsttracelib.c @@ -902,7 +902,7 @@ _do_pad_stats(GstPad * pad, GsttlPadStats *stats, GstBuffer *buffer, GstClockTim _log_entry( "chkcaps_pad_%s %" GST_TIME_FORMAT " %lf, buffer-caps are not fixed\n", stats->name, GST_TIME_ARGS (elapsed), GSTTL_TIME_AS_SECOND (elapsed)); - } else if (pad_caps && buffer_caps && !gst_caps_is_equal_fixed (pad_caps, buffer_caps)) { + } else if (pad_caps && buffer_caps && gst_caps_is_fixed(pad_caps) && gst_caps_is_fixed(buffer_caps) && (pad_caps != buffer_caps) && !gst_caps_is_equal_fixed(pad_caps, buffer_caps)) { _log_entry( "chkcaps_pad_%s %" GST_TIME_FORMAT " %lf, buffer-caps and pad-caps differ\n", stats->name, GST_TIME_ARGS (elapsed), GSTTL_TIME_AS_SECOND (elapsed)); |