mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
cacasink: exit properly when invalid driver has been selected.
See #599018.
This commit is contained in:
parent
683f2a02fb
commit
45042dffbc
1 changed files with 6 additions and 1 deletions
|
@ -350,7 +350,12 @@ static gboolean
|
||||||
gst_cacasink_open (GstCACASink * cacasink)
|
gst_cacasink_open (GstCACASink * cacasink)
|
||||||
{
|
{
|
||||||
cacasink->bitmap = NULL;
|
cacasink->bitmap = NULL;
|
||||||
caca_init ();
|
|
||||||
|
if (caca_init () < 0) {
|
||||||
|
GST_ELEMENT_ERROR (cacasink, RESOURCE, OPEN_WRITE, (NULL),
|
||||||
|
("caca_init() failed"));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
cacasink->screen_width = caca_get_width ();
|
cacasink->screen_width = caca_get_width ();
|
||||||
cacasink->screen_height = caca_get_height ();
|
cacasink->screen_height = caca_get_height ();
|
||||||
|
|
Loading…
Reference in a new issue