[longomatch] encoder: fix deadlock when the encoding is done
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] encoder: fix deadlock when the encoding is done
- Date: Fri, 31 Jan 2014 01:42:33 +0000 (UTC)
commit aa6742c0b89edcd59dcd62776c7b0a9c799a6287
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Jan 31 02:40:33 2014 +0100
encoder: fix deadlock when the encoding is done
the timeout triggers a timeout that calls next_file again
libcesarplayer/gst-video-encoder.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libcesarplayer/gst-video-encoder.c b/libcesarplayer/gst-video-encoder.c
index 6884861..c26187a 100644
--- a/libcesarplayer/gst-video-encoder.c
+++ b/libcesarplayer/gst-video-encoder.c
@@ -434,6 +434,8 @@ gst_video_encoder_select_next_file (GstVideoEncoder *gve)
gst_video_encoder_create_source (gve, (gchar *) gve->priv->current_file->data);
} else {
GST_INFO_OBJECT (gve, "No more files, sending EOS");
+ g_source_remove (gve->priv->update_id);
+ gve->priv->update_id = 0;
/* Enlarge queues to avoid deadlocks */
g_object_set (gve->priv->aqueue, "max-size-time", 0,
"max-size-bytes", 0, "max-size-buffers", 0, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]