From: Luis de Bethencourt Date: Tue, 23 Sep 2014 16:32:59 +0000 (+0100) Subject: mpegpsmux: refactor duplicate else branches X-Git-Tag: 1.19.3~507^2~10293 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e638096e641af95cf463b4ad08f5e7a6d19af46;p=platform%2Fupstream%2Fgstreamer.git mpegpsmux: refactor duplicate else branches Unknown case should assert if reached instead of just assuming the max buffer size. https://bugzilla.gnome.org/show_bug.cgi?id=736460 --- diff --git a/gst/mpegpsmux/psmuxstream.c b/gst/mpegpsmux/psmuxstream.c index 43f70703d9..22026a1e51 100644 --- a/gst/mpegpsmux/psmuxstream.c +++ b/gst/mpegpsmux/psmuxstream.c @@ -190,8 +190,8 @@ psmux_stream_new (PsMux * mux, PsMuxStreamType stream_type) stream->max_buffer_size = 400 * 1024; else if (stream->is_audio_stream) stream->max_buffer_size = 4 * 1024; - else /* Unknown */ - stream->max_buffer_size = 4 * 1024; + else + g_assert_not_reached (); } return stream;