From: NAMJEONGYOON Date: Tue, 15 Nov 2016 02:39:26 +0000 (+0900) Subject: ignore spaces for getting lang_key X-Git-Tag: submit/tizen_3.0/20161220.100802 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen_3.0%2F20161220.100802;p=platform%2Fupstream%2Fgst-plugins-base.git ignore spaces for getting lang_key Change-Id: I7ba89d3504b5d2f29619ee05b68f554584ceef5c --- diff --git a/gst/subparse/samiparse.c b/gst/subparse/samiparse.c index 0d0efc1..c9eaea3 100644 --- a/gst/subparse/samiparse.c +++ b/gst/subparse/samiparse.c @@ -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);