mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
gst-libs/gst/rtp/gstbasertppayload.c: Allow 0 ssrc too.
Original commit message from CVS: * gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_class_init), (gst_basertppayload_init), (gst_basertppayload_setcaps), (gst_basertppayload_chain), (gst_basertppayload_set_options), (gst_basertppayload_set_outcaps), (gst_basertppayload_push), (gst_basertppayload_get_property), (gst_basertppayload_change_state): Allow 0 ssrc too.
This commit is contained in:
parent
734aaba0c7
commit
9bbe8af0c3
2 changed files with 14 additions and 4 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2005-09-21 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst-libs/gst/rtp/gstbasertppayload.c:
|
||||
(gst_basertppayload_class_init), (gst_basertppayload_init),
|
||||
(gst_basertppayload_setcaps), (gst_basertppayload_chain),
|
||||
(gst_basertppayload_set_options), (gst_basertppayload_set_outcaps),
|
||||
(gst_basertppayload_push), (gst_basertppayload_get_property),
|
||||
(gst_basertppayload_change_state):
|
||||
Allow 0 ssrc too.
|
||||
|
||||
2005-09-21 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* docs/libs/compiling.sgml:
|
||||
|
|
|
@ -34,7 +34,7 @@ enum
|
|||
|
||||
#define DEFAULT_MTU 1024
|
||||
#define DEFAULT_PT 96
|
||||
#define DEFAULT_SSRC 0
|
||||
#define DEFAULT_SSRC -1
|
||||
#define DEFAULT_TIMESTAMP_OFFSET -1
|
||||
#define DEFAULT_SEQNUM_OFFSET -1
|
||||
|
||||
|
@ -126,7 +126,7 @@ gst_basertppayload_class_init (GstBaseRTPPayloadClass * klass)
|
|||
0, 0x80, DEFAULT_PT, G_PARAM_READWRITE));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SSRC,
|
||||
g_param_spec_uint ("ssrc", "SSRC",
|
||||
"The SSRC of the packets (0 == random)",
|
||||
"The SSRC of the packets (-1 == random)",
|
||||
0, G_MAXUINT, DEFAULT_SSRC, G_PARAM_READWRITE));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass),
|
||||
PROP_TIMESTAMP_OFFSET, g_param_spec_int ("timestamp-offset",
|
||||
|
@ -309,7 +309,7 @@ gst_basertppayload_push (GstBaseRTPPayload * payload, GstBuffer * buffer)
|
|||
if (payload->clock_rate == 0)
|
||||
goto no_rate;
|
||||
|
||||
gst_rtpbuffer_set_ssrc (buffer, payload->ssrc);
|
||||
gst_rtpbuffer_set_ssrc (buffer, payload->current_ssrc);
|
||||
|
||||
gst_rtpbuffer_set_payload_type (buffer, payload->pt);
|
||||
|
||||
|
@ -430,7 +430,7 @@ gst_basertppayload_change_state (GstElement * element,
|
|||
basertppayload->seqnum_base = basertppayload->seqnum_offset;
|
||||
basertppayload->seqnum = basertppayload->seqnum_base;
|
||||
|
||||
if (basertppayload->ssrc == 0)
|
||||
if (basertppayload->ssrc == -1)
|
||||
basertppayload->current_ssrc = g_rand_int (basertppayload->ssrc_rand);
|
||||
else
|
||||
basertppayload->current_ssrc = basertppayload->ssrc;
|
||||
|
|
Loading…
Reference in a new issue