mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
dvbsuboverlay: use atomic instructions to set/get enable property
This commit is contained in:
parent
533453186e
commit
9b3b1aedea
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue