From: Dan Williams Date: Mon, 23 Jul 2007 11:18:35 +0000 (+0000) Subject: gst/playback/gstplaybasebin.c: Don't return NULL when querying the stream info value... X-Git-Tag: RELEASE-0_10_14~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ace9335ae3d95c34f671021d3a6c2cffff770d96;p=platform%2Fupstream%2Fgst-plugins-base.git 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. --- diff --git a/ChangeLog b/ChangeLog index 268e2e8..87600ea 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 d7390df..574eee9 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);