rtpac3depay: should output audio/x-ac3 not audio/ac3

audio/x-ac3 is the canonical media format in GStreamer.
audio/ac3 is sometimes accepted as input (e.g. in rtpac3pay
or ac3parse), but shouldn't be output.

Fixes #3038.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5662>
This commit is contained in:
Tim-Philipp Müller 2023-10-12 17:23:00 +01:00 committed by GStreamer Marge Bot
parent 23bc229e7f
commit faf6edc026
2 changed files with 3 additions and 3 deletions

View file

@ -13721,7 +13721,7 @@
"presence": "always"
},
"src": {
"caps": "audio/ac3:\n",
"caps": "audio/x-ac3:\n",
"direction": "src",
"presence": "always"
}

View file

@ -52,7 +52,7 @@ static GstStaticPadTemplate gst_rtp_ac3_depay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/ac3")
GST_STATIC_CAPS ("audio/x-ac3")
);
static GstStaticPadTemplate gst_rtp_ac3_depay_sink_template =
@ -120,7 +120,7 @@ gst_rtp_ac3_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
clock_rate = 90000; /* default */
depayload->clock_rate = clock_rate;
srccaps = gst_caps_new_empty_simple ("audio/ac3");
srccaps = gst_caps_new_empty_simple ("audio/x-ac3");
res = gst_pad_set_caps (depayload->srcpad, srccaps);
gst_caps_unref (srccaps);