[Bug 774463] mpdparser: Allows invalid URI within xlink attributes

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 17 07:50:39 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=774463

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slomo at coaxion.net

--- Comment #7 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Seungha Yang from comment #6)
> (In reply to Sebastian Dröge (slomo) from comment #5)
> > Review of attachment 339918 [details] [review] [review]:
> > 
> > ::: ext/dash/gstmpdparser.c
> > @@ -4246,3 @@
> >          period_node->xlink_href, err->message);
> >      g_clear_error (&err);
> > -    *error = TRUE;
> > 
> > This means that error is never ever set to anything. Should just be removed
> > from the parameters then
> 
> The error is still used for checking "downloader"
> https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/dash/
> gstmpdparser.c#n4217
> Could you give me suggestion about that, whether "removing the condition on
> function and checking downloader whenever before calling the function" or
> "leave it"?

That remaining case seems more or less equivalent to not being able to download
the external XML (for whatever reason). Seems more consistent to handle it the
same.

> > @@ +4309,3 @@
> > +  if (new_periods) {
> > +    g_list_free_full (new_periods,
> > +        (GDestroyNotify) gst_mpdparser_free_period_node);
> > 
> > Shouldn't we keep all periods that were successfully parsed? Or is the spec
> > saying to discard all if one can't be parsed?
> 
> Actually, there are a little uncertainty on that. In my interpretation of
> spec, however, all period on external xml should be removed.
> 
> spec is saying that "if there is any error on remote xml, corresponding
> element on parent MPD should be removed". That is, although one of period
> could be correctly parsed, another error element will cause removal the
> external xml element on parent MPD. So, the correctly parsed period on
> external xml is no more validated.

Ok, let's go with your interpretation then :)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list