projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbf9005
)
ignore spaces for getting lang_key
author
NAMJEONGYOON
<just.nam@samsung.com>
Tue, 15 Nov 2016 02:39:26 +0000
(11:39 +0900)
committer
Nam
<just.nam@samsung.com>
Thu, 17 Nov 2016 08:45:41 +0000
(
00:45
-0800)
Change-Id: I7ba89d3504b5d2f29619ee05b68f554584ceef5c
gst/subparse/samiparse.c
patch
|
blob
|
history
diff --git
a/gst/subparse/samiparse.c
b/gst/subparse/samiparse.c
index
ed86124
..
4a2ada6
100644
(file)
--- a/
gst/subparse/samiparse.c
+++ b/
gst/subparse/samiparse.c
@@
-568,6
+568,9
@@
html_context_handle_element (HtmlContext * ctxt,
next = (gchar*)strcasestr (next, "lang:");
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);