rtcpbuffer: test for len instead of type
authorJosep Torra <jtorra@oblong.com>
Thu, 21 Mar 2019 16:50:34 +0000 (17:50 +0100)
committerJosep Torra <jtorra@oblong.com>
Thu, 21 Mar 2019 18:27:28 +0000 (19:27 +0100)
commitc1a5a36bba1b3b5e83bc59f7293ff58b7415e89e
tree097dd79de0fa06f9e3b6acc58a5862bdf30fe7b9
parent3ee89d6e3c3ea1fd64d9d0c0ec0278d6597b9852
rtcpbuffer: test for len instead of type

The function rtcp_packet_min_length() returns a length for each known type
and -1 for unknown types. This change fixes the test accordingly and silences
the following warning.

gstrtcpbuffer.c:567:12: error: comparison of constant -1 with expression of type 'GstRTCPType' is always false
      [-Werror,-Wtautological-constant-out-of-range-compare]
  if (type == -1)
gst-libs/gst/rtp/gstrtcpbuffer.c