mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 22:46:24 +00:00
pulse: Change bitfield booleans to normal gbooleans
Assigning TRUE (1) to a signed 1 bit integer will cause truncation from 1 to -1 because the only non-zero value that can be stored is -1 due to how two's-complement works. As this is a proper GObject let's not bother with all this and simply use a normal gboolean instead. ../subprojects/gst-plugins-good/ext/pulse/pulsesink.c:1490:19: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] pbuf->in_commit = TRUE; ^ ~~~~ Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4617>
This commit is contained in:
parent
f9a3b3eacf
commit
bb2c5981fe
3 changed files with 14 additions and 14 deletions
|
@ -178,9 +178,9 @@ struct _GstPulseRingBuffer
|
|||
gint64 m_offset;
|
||||
gint64 m_lastoffset;
|
||||
|
||||
gboolean corked:1;
|
||||
gboolean in_commit:1;
|
||||
gboolean paused:1;
|
||||
gboolean corked;
|
||||
gboolean in_commit;
|
||||
gboolean paused;
|
||||
};
|
||||
struct _GstPulseRingBufferClass
|
||||
{
|
||||
|
|
|
@ -57,9 +57,9 @@ struct _GstPulseSink
|
|||
GstPulseDeviceInfo device_info;
|
||||
|
||||
gdouble volume;
|
||||
gboolean volume_set:1;
|
||||
gboolean mute:1;
|
||||
gboolean mute_set:1;
|
||||
gboolean volume_set;
|
||||
gboolean mute;
|
||||
gboolean mute_set;
|
||||
guint32 current_sink_idx;
|
||||
gchar *current_sink_name;
|
||||
|
||||
|
|
|
@ -56,19 +56,19 @@ struct _GstPulseSrc
|
|||
gchar *device_description;
|
||||
|
||||
gdouble volume;
|
||||
gboolean volume_set:1;
|
||||
gboolean mute:1;
|
||||
gboolean mute_set:1;
|
||||
gboolean volume_set;
|
||||
gboolean mute;
|
||||
gboolean mute_set;
|
||||
guint32 current_source_idx;
|
||||
gchar *current_source_name;
|
||||
|
||||
gint notify; /* atomic */
|
||||
|
||||
gboolean corked:1;
|
||||
gboolean stream_connected:1;
|
||||
gboolean operation_success:1;
|
||||
gboolean paused:1;
|
||||
gboolean in_read:1;
|
||||
gboolean corked;
|
||||
gboolean stream_connected;
|
||||
gboolean operation_success;
|
||||
gboolean paused;
|
||||
gboolean in_read;
|
||||
|
||||
GstStructure *properties;
|
||||
pa_proplist *proplist;
|
||||
|
|
Loading…
Reference in a new issue