set dvbaudiosink caps to support mpeg 4 profile LC and apply relevant patches.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-multimedia / gstreamer / gst-plugins-good-0.10.31 / 0005-FlvDemux-Set-profile-field-in-cap-for-aac-audio.patch
1 diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
2 index 203cb76..a8d4005 100644
3 --- a/gst/flv/gstflvdemux.c
4 +++ b/gst/flv/gstflvdemux.c
5 @@ -694,6 +694,9 @@ gst_flv_demux_audio_negotiate (GstFlvDemux * demux, guint32 codec_tag,
6        caps = gst_caps_new_simple ("audio/mpeg",
7            "mpegversion", G_TYPE_INT, 4, "framed", G_TYPE_BOOLEAN, TRUE,
8            "stream-format", G_TYPE_STRING, "raw", NULL);
9 +      if (demux->audio_codec_data &&
10 +          GST_BUFFER_SIZE (demux->audio_codec_data) >= 2)
11 +        gst_codec_utils_aac_caps_set_level_and_profile (caps, GST_BUFFER_DATA (demux->audio_codec_data), GST_BUFFER_SIZE (demux->audio_codec_data));
12        break;
13      }
14      case 7: