pleora: avoid compiler warning messages

This commit is contained in:
Joshua M. Doe 2020-02-06 13:36:47 -05:00
parent ec20592591
commit fc4c7887a3
3 changed files with 4 additions and 4 deletions

View File

@ -301,7 +301,7 @@ gst_pleorasink_set_property (GObject * object, guint property_id,
break; break;
case PROP_OUTPUT_KLV: case PROP_OUTPUT_KLV:
sink->output_klv = g_value_get_boolean (value); sink->output_klv = g_value_get_boolean (value);
sink->source->SetKlvEnabled (sink->output_klv); sink->source->SetKlvEnabled ((bool)sink->output_klv);
break; break;
case PROP_AUTO_MULTICAST: case PROP_AUTO_MULTICAST:
sink->auto_multicast = g_value_get_boolean (value); sink->auto_multicast = g_value_get_boolean (value);

View File

@ -115,7 +115,7 @@ uint32_t GstStreamingChannelSource::GetRequiredChunkSize() const
} }
} }
void GstStreamingChannelSource::SetKlvEnabled (gboolean enable) void GstStreamingChannelSource::SetKlvEnabled (bool enable)
{ {
SetChunkEnable (KLV_CHUNKID, enable); SetChunkEnable (KLV_CHUNKID, enable);
} }
@ -325,7 +325,7 @@ GByteArray * GstStreamingChannelSource::GetKlvByteArray (GstBuffer * buf)
break; break;
} }
g_byte_array_append (byte_array, klv_data, klv_size); g_byte_array_append (byte_array, klv_data, (guint)klv_size);
} }
/* chunk length must be multiple of 4 bytes */ /* chunk length must be multiple of 4 bytes */

View File

@ -49,7 +49,7 @@ public:
uint32_t GetChunksSize() const { return GetRequiredChunkSize(); } uint32_t GetChunksSize() const { return GetRequiredChunkSize(); }
uint32_t GetRequiredChunkSize () const; uint32_t GetRequiredChunkSize () const;
void SetKlvEnabled (gboolean enable = TRUE); void SetKlvEnabled (bool enable = true);
gboolean GetKlvEnabled (); gboolean GetKlvEnabled ();
GByteArray * GetKlvByteArray (GstBuffer * buf); GByteArray * GetKlvByteArray (GstBuffer * buf);