GNOME Bugzilla – Bug 736460
mpegpsmux: refactor duplicate else branches
Last modified: 2014-09-23 16:59:26 UTC
Created attachment 285895 [details] [review] mpegpsmux: refactor duplicate else branches gst-plugin-bad/gst/mpegpsmux: there are duplicate branches of else in psmuxstream.c file, please review.
Created attachment 285896 [details] [review] mpegpsmux: refactor duplicate else branches
Not convinced this is a worthwhile change. If we remove the value for the unknown case there really should be an else g_assert_not_reached() then or so, to make sure things are still set up properly if someone adds subtitle support in future, for example. I'd suggest to just leave it as is.
Comment on attachment 285896 [details] [review] mpegpsmux: refactor duplicate else branches Yes, let's add a g_assert_not_reached() there.
Created attachment 286896 [details] [review] g_assert_not_reached() As proposed.
Review of attachment 286896 [details] [review]: commited