Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
55aa2c8a
Commit
55aa2c8a
authored
Aug 05, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins2/src/skin_main.cpp: Unsubscribe message queue when
failing.
parent
e17a15a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+7
-1
No files found.
modules/gui/skins2/src/skin_main.cpp
View file @
55aa2c8a
...
@@ -85,6 +85,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -85,6 +85,7 @@ static int Open( vlc_object_t *p_this )
if
(
p_intf
->
p_sys
->
p_playlist
==
NULL
)
if
(
p_intf
->
p_sys
->
p_playlist
==
NULL
)
{
{
msg_Err
(
p_intf
,
"No playlist object found"
);
msg_Err
(
p_intf
,
"No playlist object found"
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -110,30 +111,35 @@ static int Open( vlc_object_t *p_this )
...
@@ -110,30 +111,35 @@ static int Open( vlc_object_t *p_this )
{
{
msg_Err
(
p_intf
,
"Cannot initialize OSFactory"
);
msg_Err
(
p_intf
,
"Cannot initialize OSFactory"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
AsyncQueue
::
instance
(
p_intf
)
==
NULL
)
if
(
AsyncQueue
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"Cannot initialize AsyncQueue"
);
msg_Err
(
p_intf
,
"Cannot initialize AsyncQueue"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
Interpreter
::
instance
(
p_intf
)
==
NULL
)
if
(
Interpreter
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"Cannot instanciate Interpreter"
);
msg_Err
(
p_intf
,
"Cannot instanciate Interpreter"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
VarManager
::
instance
(
p_intf
)
==
NULL
)
if
(
VarManager
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"Cannot instanciate VarManager"
);
msg_Err
(
p_intf
,
"Cannot instanciate VarManager"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
VlcProc
::
instance
(
p_intf
)
==
NULL
)
if
(
VlcProc
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"Cannot initialize VLCProc"
);
msg_Err
(
p_intf
,
"Cannot initialize VLCProc"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
Dialogs
::
instance
(
p_intf
);
Dialogs
::
instance
(
p_intf
);
...
@@ -167,7 +173,7 @@ static void Close( vlc_object_t *p_this )
...
@@ -167,7 +173,7 @@ static void Close( vlc_object_t *p_this )
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
}
}
// Unsubscribe from messages bank
// Unsubscribe from messages bank
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
// Destroy structure
// Destroy structure
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment