[totem] backend: Make sure to not send EOS if we're closing
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Make sure to not send EOS if we're closing
- Date: Wed, 11 Jul 2012 09:55:48 +0000 (UTC)
commit 90a07cb4e621cbe79652aed1af601319707a5eea
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 9 12:14:35 2012 +0100
backend: Make sure to not send EOS if we're closing
src/backend/bacon-video-widget-gst-0.10.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 2e5414a..3202397 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -2686,8 +2686,10 @@ bacon_video_widget_finalize (GObject * object)
g_source_remove (bvw->priv->tag_update_id);
g_async_queue_unref (bvw->priv->tag_update_queue);
- if (bvw->priv->eos_id != 0)
+ if (bvw->priv->eos_id != 0) {
g_source_remove (bvw->priv->eos_id);
+ bvw->priv->eos_id = 0;
+ }
if (bvw->priv->cursor != NULL) {
g_object_unref (bvw->priv->cursor);
@@ -3873,6 +3875,9 @@ bacon_video_widget_close (BaconVideoWidget * bvw)
bvw->priv->seek_req_time = GST_CLOCK_TIME_NONE;
bvw->priv->seek_time = -1;
+ if (bvw->priv->eos_id != 0)
+ g_source_remove (bvw->priv->eos_id);
+
if (bvw->priv->tagcache) {
gst_tag_list_free (bvw->priv->tagcache);
bvw->priv->tagcache = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]