From fa32e08d91050bf25abe4124805ec9ef4cd9f4e3 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 11 Jan 2010 15:45:49 -0300 Subject: [PATCH] rtpmp4g(de)pay: Only handle raw aac rtpmp4g(de)pay should only handle raw AAC streams --- gst/rtp/gstrtpmp4gdepay.c | 6 ++++-- gst/rtp/gstrtpmp4gpay.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gst/rtp/gstrtpmp4gdepay.c b/gst/rtp/gstrtpmp4gdepay.c index d3f1b03d53..887a91753a 100644 --- a/gst/rtp/gstrtpmp4gdepay.c +++ b/gst/rtp/gstrtpmp4gdepay.c @@ -43,7 +43,8 @@ static GstStaticPadTemplate gst_rtp_mp4g_depay_src_template = GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/mpeg," "mpegversion=(int) 4," - "systemstream=(boolean)false;" "audio/mpeg," "mpegversion=(int) 4") + "systemstream=(boolean)false;" + "audio/mpeg," "mpegversion=(int) 4, " "stream-format=(string)raw") ); static GstStaticPadTemplate gst_rtp_mp4g_depay_sink_template = @@ -242,7 +243,8 @@ gst_rtp_mp4g_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps) if ((str = gst_structure_get_string (structure, "media"))) { if (strcmp (str, "audio") == 0) { srccaps = gst_caps_new_simple ("audio/mpeg", - "mpegversion", G_TYPE_INT, 4, NULL); + "mpegversion", G_TYPE_INT, 4, "stream-format", G_TYPE_STRING, "raw", + NULL); } else if (strcmp (str, "video") == 0) { srccaps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 4, diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c index 14e56c2b50..13c2d5ad99 100644 --- a/gst/rtp/gstrtpmp4gpay.c +++ b/gst/rtp/gstrtpmp4gpay.c @@ -43,7 +43,8 @@ static GstStaticPadTemplate gst_rtp_mp4g_pay_sink_template = GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/mpeg," "mpegversion=(int) 4," - "systemstream=(boolean)false;" "audio/mpeg," "mpegversion=(int) 4") + "systemstream=(boolean)false;" + "audio/mpeg," "mpegversion=(int) 4, " "stream-format=(string) raw") ); static GstStaticPadTemplate gst_rtp_mp4g_pay_src_template =