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 <dcbw at redhat dot com>
* 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.
This commit is contained in:
Dan Williams 2007-07-23 11:18:35 +00:00 committed by Wim Taymans
parent 2271ec928f
commit ace9335ae3
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,12 @@
2007-07-23 Wim Taymans <wim.taymans@gmail.com>
Patch by: Dan Williams <dcbw at redhat dot com>
* 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 <tim at centricular dot net>
* gst/playback/gsturidecodebin.c:

View file

@ -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);