mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
dvbsuboverlay: Use g_atomic_int_get() for reading the max_page_timeout field
This commit is contained in:
parent
61c2b173c6
commit
e9fa2fcd8b
1 changed files with 2 additions and 1 deletions
|
@ -828,7 +828,8 @@ new_dvb_subtitles_cb (DvbSub * dvb_sub, DVBSubtitles * subs, gpointer user_data)
|
||||||
GstDVBSubOverlay *overlay = GST_DVBSUB_OVERLAY (user_data);
|
GstDVBSubOverlay *overlay = GST_DVBSUB_OVERLAY (user_data);
|
||||||
|
|
||||||
if (overlay->max_page_timeout > 0)
|
if (overlay->max_page_timeout > 0)
|
||||||
subs->page_time_out = MIN (subs->page_time_out, overlay->max_page_timeout);
|
subs->page_time_out = MIN (subs->page_time_out,
|
||||||
|
g_atomic_int_get (&overlay->max_page_timeout));
|
||||||
|
|
||||||
GST_INFO_OBJECT (overlay,
|
GST_INFO_OBJECT (overlay,
|
||||||
"New DVB subtitles arrived with a page_time_out of %d and %d regions for PTS=%"
|
"New DVB subtitles arrived with a page_time_out of %d and %d regions for PTS=%"
|
||||||
|
|
Loading…
Reference in a new issue