mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
audioencoder: only got_data if we really got some
... which avoids going loopy with casual subclass.
This commit is contained in:
parent
24d71cf7a6
commit
01d27ee084
1 changed files with 2 additions and 1 deletions
|
@ -494,7 +494,8 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
|
|||
buf ? GST_BUFFER_SIZE (buf) : -1, samples);
|
||||
|
||||
/* mark subclass still alive and providing */
|
||||
priv->got_data = TRUE;
|
||||
if (G_LIKELY (buf))
|
||||
priv->got_data = TRUE;
|
||||
|
||||
if (priv->pending_events) {
|
||||
GList *pending_events, *l;
|
||||
|
|
Loading…
Reference in a new issue