mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
sctpdec: Remove useless check
A uint16 will always be below ... the maximum value Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
8d0cd490f0
commit
d6eebeafbf
1 changed files with 0 additions and 4 deletions
|
@ -74,7 +74,6 @@ static GParamSpec *properties[NUM_PROPERTIES];
|
|||
#define DEFAULT_LOCAL_SCTP_PORT 0
|
||||
#define MAX_SCTP_PORT 65535
|
||||
#define MAX_GST_SCTP_ASSOCIATION_ID 65535
|
||||
#define MAX_STREAM_ID 65535
|
||||
|
||||
GType gst_sctp_dec_pad_get_type (void);
|
||||
|
||||
|
@ -560,9 +559,6 @@ get_pad_for_stream_id (GstSctpDec * self, guint16 stream_id)
|
|||
|
||||
GST_DEBUG_OBJECT (self, "Creating new pad for stream id %u", stream_id);
|
||||
|
||||
if (stream_id > MAX_STREAM_ID)
|
||||
return NULL;
|
||||
|
||||
template = gst_static_pad_template_get (&src_template);
|
||||
new_pad = g_object_new (GST_TYPE_SCTP_DEC_PAD, "name", pad_name,
|
||||
"direction", template->direction, "template", template, NULL);
|
||||
|
|
Loading…
Reference in a new issue