audioencoder: really push pending events
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 27 Sep 2011 14:57:45 +0000 (16:57 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 27 Sep 2011 14:58:41 +0000 (16:58 +0200)
gst-libs/gst/audio/gstaudioencoder.c

index 4b2df82925469ffcdd0adeea88669198e0220a99..7c4ab4aeb9148c9d5191f237337862002e9c7a0c 100644 (file)
@@ -503,7 +503,7 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
     priv->pending_events = NULL;
 
     GST_DEBUG_OBJECT (enc, "Pushing pending events");
-    for (l = priv->pending_events; l; l = l->next)
+    for (l = pending_events; l; l = l->next)
       gst_pad_push_event (enc->srcpad, l->data);
     g_list_free (pending_events);
   }