rtprtxsend: use a realistic limit for the value of max-size-packets

G_MAXINT16 is chosen because if the queue contains more than
G_MAXINT16 packets, seqnum comparison will not work properly.
This commit is contained in:
George Kiagiadakis 2013-11-05 09:33:51 +02:00 committed by Wim Taymans
parent 51edc07127
commit 0a8b149e9e

View file

@ -133,7 +133,7 @@ gst_rtp_rtx_send_class_init (GstRtpRtxSendClass * klass)
g_object_class_install_property (gobject_class, PROP_MAX_SIZE_PACKETS, g_object_class_install_property (gobject_class, PROP_MAX_SIZE_PACKETS,
g_param_spec_uint ("max-size-packets", "Max Size Packets", g_param_spec_uint ("max-size-packets", "Max Size Packets",
"Amount of packets to queue (0 = unlimited)", 0, G_MAXUINT, "Amount of packets to queue (0 = unlimited)", 0, G_MAXINT16,
DEFAULT_MAX_SIZE_PACKETS, DEFAULT_MAX_SIZE_PACKETS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));