rtprtxsend: use a realistic limit for the value of max-size-packets
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 5 Nov 2013 07:33:51 +0000 (09:33 +0200)
committerWim Taymans <wtaymans@redhat.com>
Fri, 3 Jan 2014 19:48:28 +0000 (20:48 +0100)
G_MAXINT16 is chosen because if the queue contains more than
G_MAXINT16 packets, seqnum comparison will not work properly.

gst/rtpmanager/gstrtprtxsend.c

index ce02d31..a4a0290 100644 (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_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,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));