projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42167b0
)
mpegpsmux: refactor duplicate else branches
author
Luis de Bethencourt
<luis.bg@samsung.com>
Tue, 23 Sep 2014 16:32:59 +0000
(17:32 +0100)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Tue, 23 Sep 2014 16:55:36 +0000
(17:55 +0100)
Unknown case should assert if reached instead of just assuming the max buffer
size.
https://bugzilla.gnome.org/show_bug.cgi?id=736460
gst/mpegpsmux/psmuxstream.c
patch
|
blob
|
history
diff --git
a/gst/mpegpsmux/psmuxstream.c
b/gst/mpegpsmux/psmuxstream.c
index 43f70703d9fce98fb4b9a2aef759ca2cd5dc928c..22026a1e5186f6704fda9a240fa65f08aabd71a9 100644
(file)
--- 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;