GNOME Bugzilla – Bug 784312
encodebin: simplify the are_raw_caps function
Last modified: 2017-06-29 19:53:07 UTC
Remove unnecessary if statement in are_raw_caps function. we can use result returned by gst_caps_can_intersect quite simple.
Created attachment 354661 [details] [review] encodebin: simplify the are_raw_caps function
Review of attachment 354661 [details] [review]: ::: gst/encoding/gstencodebin.c @@ +595,3 @@ { GstCaps *raw = gst_static_caps_get (&default_raw_caps); + gboolean res = gst_caps_can_intersect (caps, raw); That's make two function calls for assigning to stack variable. I do think that some compilers won't like it.
That's not a problem.
Ok then.