diff options
author | Luis de Bethencourt <luis.bg@samsung.com> | 2014-09-23 17:32:59 +0100 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2014-09-23 17:55:36 +0100 |
commit | 4e638096e641af95cf463b4ad08f5e7a6d19af46 (patch) | |
tree | 485877ebd7bfc0930a4249da888e37407c566a96 /gst/mpegpsmux | |
parent | 42167b0d1fa45974da06256ae48ba8553283cf2f (diff) | |
download | gstreamer-plugins-bad-4e638096e641af95cf463b4ad08f5e7a6d19af46.tar.gz |
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
Diffstat (limited to 'gst/mpegpsmux')
-rw-r--r-- | gst/mpegpsmux/psmuxstream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mpegpsmux/psmuxstream.c b/gst/mpegpsmux/psmuxstream.c index 43f70703d..22026a1e5 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; |