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
This commit is contained in:
parent
42167b0d1f
commit
4e638096e6
@ -190,8 +190,8 @@ psmux_stream_new (PsMux * mux, PsMuxStreamType stream_type)
|
|||||||
stream->max_buffer_size = 400 * 1024;
|
stream->max_buffer_size = 400 * 1024;
|
||||||
else if (stream->is_audio_stream)
|
else if (stream->is_audio_stream)
|
||||||
stream->max_buffer_size = 4 * 1024;
|
stream->max_buffer_size = 4 * 1024;
|
||||||
else /* Unknown */
|
else
|
||||||
stream->max_buffer_size = 4 * 1024;
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
return stream;
|
return stream;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user