mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtpmp2tpay: fix up template caps so we can output the default pt 33
Add fixed payload type for mp2t to template caps as well, so our output caps match the advertised default pt. Fixes a regression from 1.2. There's still something wrong with caps negotiation though, rtpmp2tpay payload=96 ! fakesink will not output caps with payload=96.
This commit is contained in:
parent
d15ebcbf62
commit
92c1d289b8
1 changed files with 5 additions and 1 deletions
|
@ -36,10 +36,14 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_mp2t_pay_src_template =
|
static GstStaticPadTemplate gst_rtp_mp2t_pay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("application/x-rtp, "
|
GST_STATIC_CAPS ("application/x-rtp, "
|
||||||
|
"media = (string) \"video\", "
|
||||||
|
"payload = (int) " GST_RTP_PAYLOAD_MP2T_STRING ", "
|
||||||
|
"clock-rate = (int) 90000, " "encoding-name = (string) \"MP2T\" ; "
|
||||||
|
"application/x-rtp, "
|
||||||
"media = (string) \"video\", "
|
"media = (string) \"video\", "
|
||||||
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
||||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"MP2T\"")
|
"clock-rate = (int) 90000, " "encoding-name = (string) \"MP2T\"")
|
||||||
|
|
Loading…
Reference in a new issue