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:
Olaf Seibert 2011-07-27 11:02:41 +01:00 committed by Tim-Philipp Müller
parent e910e2888b
commit 7583080023

View file

@ -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;
}