projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4525a40
)
basesink: Don't forget to unref the cached ClockId
author
Edward Hervey
<bilboed@bilboed.com>
Sun, 5 Dec 2010 14:58:48 +0000
(15:58 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Sun, 5 Dec 2010 14:58:48 +0000
(15:58 +0100)
libs/gst/base/gstbasesink.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstbasesink.c
b/libs/gst/base/gstbasesink.c
index 82b618fc4e2bb83917a846029efa59610dc2f7de..7a3fb74f5b1071d61ad52e008f4eee8afc8b03e9 100644
(file)
--- a/
libs/gst/base/gstbasesink.c
+++ b/
libs/gst/base/gstbasesink.c
@@
-4939,6
+4939,10
@@
gst_base_sink_change_state (GstElement * element, GstStateChange transition)
priv->current_sstart = GST_CLOCK_TIME_NONE;
priv->current_sstop = GST_CLOCK_TIME_NONE;
priv->have_latency = FALSE;
+ if (priv->cached_clock_id) {
+ gst_clock_id_unref (priv->cached_clock_id);
+ priv->cached_clock_id = NULL;
+ }
GST_OBJECT_UNLOCK (basesink);
gst_base_sink_set_last_buffer (basesink, NULL);