From: Thiago Santos Date: Fri, 4 Jan 2013 18:49:43 +0000 (-0300) Subject: mssmanifest: do not set codec_data when it is empty X-Git-Tag: 1.19.3~507^2~13727 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2ba96bb8511dfafd201d2d4f3187716843779fb;p=platform%2Fupstream%2Fgstreamer.git mssmanifest: do not set codec_data when it is empty Some manifests contain empty codec datas, better not set them --- diff --git a/ext/smoothstreaming/gstmssmanifest.c b/ext/smoothstreaming/gstmssmanifest.c index 2eb187cb45..9a5e59171d 100644 --- a/ext/smoothstreaming/gstmssmanifest.c +++ b/ext/smoothstreaming/gstmssmanifest.c @@ -384,7 +384,7 @@ _gst_mss_stream_video_caps_from_qualitylevel_xml (xmlNodePtr node) gst_structure_set (structure, "height", G_TYPE_INT, atoi (max_height), NULL); - if (codec_data) { + if (codec_data && strlen (codec_data)) { if (strcmp (fourcc, "H264") == 0) { _gst_mss_stream_add_h264_codec_data (caps, codec_data); } else { @@ -427,7 +427,7 @@ _gst_mss_stream_audio_caps_from_qualitylevel_xml (xmlNodePtr node) if (rate) gst_structure_set (structure, "rate", G_TYPE_INT, atoi (rate), NULL); - if (codec_data) { + if (codec_data && strlen (codec_data)) { GValue *value = g_new0 (GValue, 1); g_value_init (value, GST_TYPE_BUFFER); gst_value_deserialize (value, (gchar *) codec_data);