Commit de0adf26 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB screen: fix error path

parent 1eefd8d5
......@@ -114,6 +114,7 @@ static int Open (vlc_object_t *obj)
if (p_sys == NULL)
return VLC_ENOMEM;
demux->p_sys = p_sys;
/* Connect to X server */
char *display = var_CreateGetNonEmptyString (obj, "x11-display");
......@@ -259,7 +260,6 @@ static int Open (vlc_object_t *obj)
/* Initializes demux */
demux->pf_demux = Demux;
demux->pf_control = Control;
demux->p_sys = p_sys;
return VLC_SUCCESS;
error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment