playsink: re-add identity where appropriate
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 19 Oct 2011 13:13:30 +0000 (14:13 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 3 Nov 2011 09:05:26 +0000 (10:05 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=661262

gst/playback/gstplaysinkaudioconvert.c
gst/playback/gstplaysinkconvertbin.c
gst/playback/gstplaysinkconvertbin.h

index 44572b4..f8783d0 100644 (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);
index 6123d11..545b9e5 100644 (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");
index d8379ef..0e71866 100644 (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__ */