mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
hlsdemux: fix wrong usage of GST_ELEMENT_ERROR macros and compilation on NetBSD
https://bugzilla.gnome.org/show_bug.cgi?id=655319
This commit is contained in:
parent
e910e2888b
commit
7583080023
1 changed files with 5 additions and 4 deletions
|
@ -370,14 +370,15 @@ gst_hls_demux_sink_event (GstPad * pad, GstEvent * event)
|
|||
/* In most cases, this will happen if we set a wrong url in the
|
||||
* source element and we have received the 404 HTML response instead of
|
||||
* the playlist */
|
||||
GST_ELEMENT_ERROR (demux, STREAM, DECODE, ("Invalid playlist."), NULL);
|
||||
GST_ELEMENT_ERROR (demux, STREAM, DECODE, ("Invalid playlist."),
|
||||
(NULL));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!ret && gst_m3u8_client_is_live (demux->client)) {
|
||||
GST_ELEMENT_ERROR (demux, RESOURCE, NOT_FOUND,
|
||||
("Failed querying the playlist uri, "
|
||||
"required for live sources."), NULL);
|
||||
"required for live sources."), (NULL));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -605,7 +606,7 @@ end_of_playlist:
|
|||
cache_error:
|
||||
{
|
||||
GST_ELEMENT_ERROR (demux, RESOURCE, NOT_FOUND,
|
||||
("Could not cache the first fragments"), NULL);
|
||||
("Could not cache the first fragments"), (NULL));
|
||||
gst_hls_demux_stop (demux);
|
||||
return;
|
||||
}
|
||||
|
@ -868,7 +869,7 @@ uri_error:
|
|||
state_change_error:
|
||||
{
|
||||
GST_ELEMENT_ERROR (demux, CORE, STATE_CHANGE,
|
||||
("Error changing state of the fetcher element."), NULL);
|
||||
("Error changing state of the fetcher element."), (NULL));
|
||||
bret = FALSE;
|
||||
goto quit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue