ignore spaces for getting lang_key 66/105066/1 accepted/tizen/3.0/common/20161221.181311 accepted/tizen/3.0/ivi/20161221.011000 accepted/tizen/3.0/mobile/20161221.011622 accepted/tizen/3.0/tv/20161221.010752 accepted/tizen/3.0/wearable/20161221.011123 submit/tizen_3.0/20161220.100802
authorNAMJEONGYOON <just.nam@samsung.com>
Tue, 15 Nov 2016 02:39:26 +0000 (11:39 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Thu, 15 Dec 2016 08:43:13 +0000 (17:43 +0900)
Change-Id: I7ba89d3504b5d2f29619ee05b68f554584ceef5c

gst/subparse/samiparse.c

index 0d0efc1..c9eaea3 100644 (file)
@@ -571,6 +571,9 @@ html_context_handle_element (HtmlContext * ctxt,
 
       attr_value = (gchar*)malloc (3);
       next = next + 5;
+      /* skip spaces */
+      while (*next == ' ')
+        next++;
       strncpy (attr_value, next, 2);
       attr_value[2] = '\0';
       GST_LOG ("Language value comes as %s", attr_value);