summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongil Park <dongil.park@lge.com>2017-12-15 10:50:44 +0900
committerEdward Hervey <bilboed@bilboed.com>2017-12-15 09:16:48 +0100
commit4fa7de1eb28d97837c64578c6e5f6ff835e548e4 (patch)
tree48816877d4c9b42194cc4c1fe8b1760ce902a8cc
parente07c69f65598068b380753066783a1c67e3d4464 (diff)
downloadgstreamer-plugins-base-4fa7de1eb28d97837c64578c6e5f6ff835e548e4.tar.gz
playbin3: Fix accessing invalid index in GstStream when received select-stream event
If select-stream event was send to playbin3 as missing any GstStream of ES type (V or A or TEX) of collection then, playbin will access to invalid address of GstStream due to invalid index limit. This caused SIGSEGV. https://bugzilla.gnome.org/show_bug.cgi?id=791638
-rw-r--r--gst/playback/gstplaybin3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/playback/gstplaybin3.c b/gst/playback/gstplaybin3.c
index f3f5efe5a..36135cb97 100644
--- a/gst/playback/gstplaybin3.c
+++ b/gst/playback/gstplaybin3.c
@@ -2252,7 +2252,7 @@ get_combiner_stream_id (GstPlayBin3 * playbin, GstSourceCombine * combine,
gint i;
GList *tmp;
- for (i = 0; combine->streams->len; i++) {
+ for (i = 0; i < combine->streams->len; i++) {
GstStream *stream = (GstStream *) g_ptr_array_index (combine->streams, i);
const gchar *sid = gst_stream_get_stream_id (stream);
for (tmp = full_list; tmp; tmp = tmp->next) {