mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
gst/rtp/: Narrow down the caps of the mpeg audio pay/depayloaders to only accept mpeg version 1. Fixes #558427.
Original commit message from CVS: * gst/rtp/gstrtpmpadepay.c: (gst_rtp_mpa_depay_setcaps): * gst/rtp/gstrtpmpapay.c: Narrow down the caps of the mpeg audio pay/depayloaders to only accept mpeg version 1. Fixes #558427.
This commit is contained in:
parent
38eac47ec9
commit
d1dc70efd8
3 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-10-30 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst/rtp/gstrtpmpadepay.c: (gst_rtp_mpa_depay_setcaps):
|
||||
* gst/rtp/gstrtpmpapay.c:
|
||||
Narrow down the caps of the mpeg audio pay/depayloaders to only accept
|
||||
mpeg version 1. Fixes #558427.
|
||||
|
||||
2008-10-29 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst/rtp/gstrtpL16pay.c: (gst_rtp_L16_pay_flush),
|
||||
|
|
|
@ -40,7 +40,7 @@ static GstStaticPadTemplate gst_rtp_mpa_depay_src_template =
|
|||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/mpeg")
|
||||
GST_STATIC_CAPS ("audio/mpeg, " "mpegversion = (int) 1")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtp_mpa_depay_sink_template =
|
||||
|
@ -127,7 +127,8 @@ gst_rtp_mpa_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
|
|||
clock_rate = 90000;
|
||||
depayload->clock_rate = clock_rate;
|
||||
|
||||
outcaps = gst_caps_new_simple ("audio/mpeg", NULL);
|
||||
outcaps =
|
||||
gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT, 1, NULL);
|
||||
res = gst_pad_set_caps (depayload->srcpad, outcaps);
|
||||
gst_caps_unref (outcaps);
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ static GstStaticPadTemplate gst_rtp_mpa_pay_sink_template =
|
|||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/mpeg")
|
||||
GST_STATIC_CAPS ("audio/mpeg, " "mpegversion = (int) 1")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtp_mpa_pay_src_template =
|
||||
|
|
Loading…
Reference in a new issue