mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
dashdemux: set proper stream type to streams
strncmp returns 0 when it compares equal and not a boolean
This commit is contained in:
parent
5230b2354f
commit
cb94de5d2f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue