update for renamed flags

Use the _check_reconfigure method instead of checking flags.
This commit is contained in:
Wim Taymans 2011-11-16 12:40:58 +01:00
parent c5c67c1913
commit 37e081fc61

View file

@ -772,10 +772,7 @@ gst_base_audio_visualizer_ensure_negotiated (GstBaseAudioVisualizer * scope)
{
gboolean reconfigure;
GST_OBJECT_LOCK (scope->srcpad);
reconfigure = GST_PAD_NEEDS_RECONFIGURE (scope->srcpad);
GST_OBJECT_FLAG_UNSET (scope->srcpad, GST_PAD_NEED_RECONFIGURE);
GST_OBJECT_UNLOCK (scope->srcpad);
reconfigure = gst_pad_check_reconfigure (scope->srcpad);
/* we don't know an output format yet, pick one */
if (reconfigure || !gst_pad_has_current_caps (scope->srcpad)) {