From ace9335ae3d95c34f671021d3a6c2cffff770d96 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 23 Jul 2007 11:18:35 +0000 Subject: [PATCH] gst/playback/gstplaybasebin.c: Don't return NULL when querying the stream info value array but instead return an empt... Original commit message from CVS: Patch by: Dan Williams * gst/playback/gstplaybasebin.c: (gst_play_base_bin_get_streaminfo_value_array): Don't return NULL when querying the stream info value array but instead return an empty array. Fixes #459204. --- ChangeLog | 9 +++++++++ gst/playback/gstplaybasebin.c | 2 ++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 268e2e8b06..87600ea9b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-07-23 Wim Taymans + + Patch by: Dan Williams + + * gst/playback/gstplaybasebin.c: + (gst_play_base_bin_get_streaminfo_value_array): + Don't return NULL when querying the stream info value array but instead + return an empty array. Fixes #459204. + 2007-07-23 Tim-Philipp Müller * gst/playback/gsturidecodebin.c: diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index d7390df5ba..574eee9408 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -2650,6 +2650,8 @@ gst_play_base_bin_get_streaminfo_value_array (GstPlayBaseBin * play_base_bin) group = get_active_group (play_base_bin); if (group) { array = g_value_array_copy (group->streaminfo_value_array); + } else { + array = g_value_array_new (0); } GROUP_UNLOCK (play_base_bin);