GNOME Bugzilla – Bug 797191
qtdemux: turn impossible condition into an assert
Last modified: 2018-09-24 07:35:29 UTC
qtdemux_update_streams() is only ever called after checking `qtdemux->streams_aware` is TRUE. There is no need to check for that condition again. `qtdemux->streams_aware` is only modified when the demuxer is hard-resetted, which is mutually exclusive with demuxing, so it cannot be modified during the call.
Created attachment 373738 [details] [review] qtdemux: turn impossible condition into an assert
Thanks! commit bc0ea0dbbb4a5f10daa5292f1da4613584d5e3ae Author: Alicia Boya García <aboya@igalia.com> Date: Sat Sep 22 17:22:46 2018 +0200 qtdemux: turn impossible condition into an assert qtdemux_update_streams() is only ever called after checking `qtdemux->streams_aware` is TRUE. There is no need to check for that condition again. `qtdemux->streams_aware` is only modified when the demuxer is hard-resetted, which is mutually exclusive with demuxing, so it cannot be modified during the call. https://bugzilla.gnome.org/show_bug.cgi?id=797191