GNOME Bugzilla – Bug 796837
rtpL8pay: don't try to modify a read-only structure
Last modified: 2018-07-25 13:01:20 UTC
I noticed this when gst_structure_remove_field() killed my application when fatal-criticals was enabled. I'm not sure what the code was supposed to do exactly. It has no effect right now, so just removing it makes sense to me.
Created attachment 373094 [details] [review] rtpL8pay: don't try to modify a read-only structure Just remove the code. It's not doing anything useful anyways. The modified caps are the result of a caps query, so either not used afterwards of a reference to some internal caps of another element that should not be modified.
Review of attachment 373094 [details] [review]: This is correct. I bet the intention was to remove the channel field from the returned caps, but they did it wrong. I'm not sure removing that field from the returned caps is really needed, we'll return the template which is already a range from 1 to "infinity".
Attachment 373094 [details] pushed as bd05ab8 - rtpL8pay: don't try to modify a read-only structure