playsink: re-add identity where appropriate

https://bugzilla.gnome.org/show_bug.cgi?id=661262
This commit is contained in:
Vincent Penquerc'h 2011-10-19 14:13:30 +01:00 committed by Sebastian Dröge
parent c3e94d1c08
commit 0cac680fac
3 changed files with 4 additions and 1 deletions

View file

@ -134,6 +134,7 @@ gst_play_sink_audio_convert_set_property (GObject * object, guint prop_id,
GST_DEBUG_OBJECT (self, "Rebuilding converter bin");
gst_play_sink_convert_bin_remove_elements (cbin);
gst_play_sink_audio_convert_add_conversion_elements (self);
gst_play_sink_convert_bin_add_identity (cbin);
gst_play_sink_convert_bin_cache_converter_caps (cbin);
}
GST_PLAY_SINK_CONVERT_BIN_UNLOCK (self);

View file

@ -123,7 +123,7 @@ gst_play_sink_convert_bin_add_conversion_element_factory (GstPlaySinkConvertBin
return el;
}
static void
void
gst_play_sink_convert_bin_add_identity (GstPlaySinkConvertBin * self)
{
self->identity = gst_element_factory_make ("identity", "identity");

View file

@ -96,6 +96,8 @@ void
gst_play_sink_convert_bin_cache_converter_caps (GstPlaySinkConvertBin * self);
void
gst_play_sink_convert_bin_remove_elements (GstPlaySinkConvertBin * self);
void
gst_play_sink_convert_bin_add_identity (GstPlaySinkConvertBin * self);
G_END_DECLS
#endif /* __GST_PLAY_SINK_CONVERT_BIN_H__ */