projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5230b23
)
dashdemux: set proper stream type to streams
author
Thiago Santos
<thiagoss@osg.samsung.com>
Thu, 12 Feb 2015 14:15:31 +0000
(11:15 -0300)
committer
Thiago Santos
<thiagoss@osg.samsung.com>
Thu, 12 Feb 2015 14:16:25 +0000
(11:16 -0300)
strncmp returns 0 when it compares equal and not a
boolean
ext/dash/gstmpdparser.c
patch
|
blob
|
history
diff --git
a/ext/dash/gstmpdparser.c
b/ext/dash/gstmpdparser.c
index 3f6a239e77ee20aa5b28458517e044fb89c61ff0..23ffe8aedb01da462be9458e8ff4b2906cd8b65c 100644
(file)
--- a/
ext/dash/gstmpdparser.c
+++ b/
ext/dash/gstmpdparser.c
@@
-1919,11
+1919,11
@@
gst_mpdparser_representation_get_mimetype (GstAdaptationSetNode * adapt_set,
mime = adapt_set->RepresentationBase->mimeType;
}
- if (strncmp_ext (mime, "audio"))
+ if (strncmp_ext (mime, "audio")
== 0
)
return GST_STREAM_AUDIO;
- if (strncmp_ext (mime, "video"))
+ if (strncmp_ext (mime, "video")
== 0
)
return GST_STREAM_VIDEO;
- if (strncmp_ext (mime, "application"))
+ if (strncmp_ext (mime, "application")
== 0
)
return GST_STREAM_APPLICATION;
return GST_STREAM_UNKNOWN;