gst/playback/gstdecodebin.c: free plugin list correctly

Original commit message from CVS:
* gst/playback/gstdecodebin.c: free plugin list correctly
* gst/playback/gstplaybin.c: emit warning if autovideosink
and autoaudiosink can't be found (instead of segfaulting)
This commit is contained in:
David Schleef 2005-09-18 07:01:46 +00:00
parent bb4f3fa6a0
commit 9e6bf1b940
4 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-09-18 David Schleef <ds@schleef.org>
* gst/playback/gstdecodebin.c: free plugin list correctly
* gst/playback/gstplaybin.c: emit warning if autovideosink
and autoaudiosink can't be found (instead of segfaulting)
2005-09-17 Thomas Vander Stichele <thomas at apestaart dot org>
* check/elements/audioconvert.c: (GST_START_TEST):

2
common

@ -1 +1 @@
Subproject commit 39250a956e1dfc010fe9f9d93ca1e2c3a343cdca
Subproject commit 3f8b422d851dc64797cdd97dd7a2014acd751386

View file

@ -348,7 +348,7 @@ gst_decode_bin_dispose (GObject * object)
decode_bin = GST_DECODE_BIN (object);
g_list_free (decode_bin->factories);
gst_plugin_feature_list_free (decode_bin->factories);
G_OBJECT_CLASS (parent_class)->dispose (object);
}

View file

@ -396,6 +396,9 @@ gen_video_element (GstPlayBin * play_bin)
sink = play_bin->video_sink;
} else {
sink = gst_element_factory_make ("autovideosink", "videosink");
if (sink == NULL) {
g_warning ("could not create autovideosink element");
}
}
gst_object_ref (sink);
g_hash_table_insert (play_bin->cache, "video_sink", sink);
@ -510,6 +513,9 @@ gen_audio_element (GstPlayBin * play_bin)
sink = play_bin->audio_sink;
} else {
sink = gst_element_factory_make ("autoaudiosink", "audiosink");
if (sink == NULL) {
g_warning ("could not create autoaudiosink element");
}
play_bin->audio_sink = GST_ELEMENT (gst_object_ref (sink));
}