audioencoder: only got_data if we really got some

... which avoids going loopy with casual subclass.
This commit is contained in:
Mark Nauwelaerts 2011-09-27 16:18:05 +02:00
parent 24d71cf7a6
commit 01d27ee084

View file

@ -494,6 +494,7 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
buf ? GST_BUFFER_SIZE (buf) : -1, samples);
/* mark subclass still alive and providing */
if (G_LIKELY (buf))
priv->got_data = TRUE;
if (priv->pending_events) {