From: <sl...@ke...> - 2010-12-15 20:05:12
|
Module: gst-plugins-bad Branch: master Commit: 9b3b1aedeab86f6567c551c650b36e03a4d98aee URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=9b3b1aedeab86f6567c551c650b36e03a4d98aee Author: Janne Grunau <jan...@co...> Date: Tue Dec 14 14:34:56 2010 +0100 dvbsuboverlay: use atomic instructions to set/get enable property --- gst/dvbsuboverlay/gstdvbsuboverlay.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c index 28bf84f..4b8ce84 100644 --- a/gst/dvbsuboverlay/gstdvbsuboverlay.c +++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c @@ -289,7 +289,7 @@ gst_dvbsub_overlay_set_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_ENABLE: - overlay->enable = g_value_get_boolean (value); + g_atomic_int_set (&overlay->enable, g_value_get_boolean (value)); break; case PROP_MAX_PAGE_TIMEOUT: g_atomic_int_set (&overlay->max_page_timeout, g_value_get_int (value)); @@ -308,7 +308,7 @@ gst_dvbsub_overlay_get_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_ENABLE: - g_value_set_boolean (value, overlay->enable); + g_value_set_int (value, g_atomic_int_get (&overlay->enable)); break; case PROP_MAX_PAGE_TIMEOUT: g_value_set_int (value, g_atomic_int_get (&overlay->max_page_timeout)); |