gst/playback/gstplaybasebin.c: Don't assert (#157853).

Original commit message from CVS:
* gst/playback/gstplaybasebin.c: (gst_play_base_bin_change_state):
Don't assert (#157853).
This commit is contained in:
Ronald S. Bultje 2004-11-10 16:05:17 +00:00
parent 5aa107a360
commit 767cd0d102
2 changed files with 7 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2004-11-10 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/playback/gstplaybasebin.c: (gst_play_base_bin_change_state):
Don't assert (#157853).
2004-11-10 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event),

View file

@ -1069,15 +1069,11 @@ gst_play_base_bin_change_state (GstElement * element)
group = get_active_group (play_base_bin);
/* FIXME for now... The group can be NULL if the setup_source
* function somehow returned TRUE but did not commit the group.
* Actually I don't think this can happen but need to recheck. */
g_assert (group);
/* check if we found any supported stream... if not, then
* we detected stream type (or the above would've failed),
* but linking/decoding failed - plugin probably missing. */
for (item = group->streaminfo; item != NULL; item = item->next) {
for (item = group ? group->streaminfo : NULL;
item != NULL; item = item->next) {
GstStreamInfo *info = GST_STREAM_INFO (item->data);
if (info->type != GST_STREAM_TYPE_UNKNOWN) {