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
2ba61dee
Commit
2ba61dee
authored
Sep 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge module_release and module_Put
parent
fe41cd60
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
44 deletions
+27
-44
include/vlc_modules.h
include/vlc_modules.h
+2
-1
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/complete_preferences.cpp
+1
-1
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+2
-2
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+1
-1
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+1
-1
modules/gui/wxwidgets/dialogs/open.cpp
modules/gui/wxwidgets/dialogs/open.cpp
+4
-4
modules/gui/wxwidgets/dialogs/preferences.cpp
modules/gui/wxwidgets/dialogs/preferences.cpp
+1
-1
src/libvlccore.sym
src/libvlccore.sym
+2
-1
src/modules/modules.c
src/modules/modules.c
+13
-21
src/modules/modules.h
src/modules/modules.h
+0
-11
No files found.
include/vlc_modules.h
View file @
2ba61dee
...
...
@@ -39,11 +39,12 @@ VLC_EXPORT( bool, __module_Exists, ( vlc_object_t *, const char * ) );
#define module_Find(a,b) __module_Find(VLC_OBJECT(a),b)
VLC_EXPORT
(
module_t
*
,
__module_Find
,
(
vlc_object_t
*
,
const
char
*
)
);
VLC_EXPORT
(
void
,
module_Put
,
(
module_t
*
module
)
);
VLC_EXPORT
(
module_config_t
*
,
module_GetConfig
,
(
const
module_t
*
,
unsigned
*
)
);
VLC_EXPORT
(
void
,
module_PutConfig
,
(
module_config_t
*
)
);
VLC_EXPORT
(
module_t
*
,
module_hold
,
(
module_t
*
module
)
);
VLC_EXPORT
(
void
,
module_release
,
(
module_t
*
module
)
);
VLC_EXPORT
(
void
,
module_list_free
,
(
module_t
**
)
);
VLC_EXPORT
(
module_t
**
,
module_list_get
,
(
size_t
*
n
)
);
...
...
modules/gui/qt4/components/complete_preferences.cpp
View file @
2ba61dee
...
...
@@ -496,7 +496,7 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
layout
->
addWidget
(
box
,
i_line
,
0
,
1
,
-
1
);
}
module_
Put
(
p_module
);
module_
release
(
p_module
);
scrolled_area
->
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Fixed
);
scrolled_area
->
setLayout
(
layout
);
...
...
modules/gui/qt4/components/extended_panels.cpp
View file @
2ba61dee
...
...
@@ -271,11 +271,11 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
}
else
{
module_
Put
(
p_obj
);
module_
release
(
p_obj
);
msg_Err
(
p_intf
,
"Unknown video filter type."
);
return
;
}
module_
Put
(
p_obj
);
module_
release
(
p_obj
);
psz_string
=
config_GetPsz
(
p_intf
,
psz_filter_type
);
...
...
modules/gui/qt4/components/open_panels.cpp
View file @
2ba61dee
...
...
@@ -1214,6 +1214,6 @@ void CaptureOpenPanel::advancedDialog()
}
delete
adv
;
module_PutConfig
(
p_config
);
module_
Put
(
p_module
);
module_
release
(
p_module
);
}
modules/gui/qt4/components/preferences_widgets.cpp
View file @
2ba61dee
...
...
@@ -1196,7 +1196,7 @@ void KeySelectorControl::finish()
}
}
module_PutConfig
(
p_config
);
module_
Put
(
p_main
);
module_
release
(
p_main
);
table
->
resizeColumnToContents
(
0
);
...
...
modules/gui/wxwidgets/dialogs/open.cpp
View file @
2ba61dee
...
...
@@ -515,7 +515,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
input_tab_array
.
Add
(
autopanel
);
notebook
->
AddPage
(
autopanel
,
wxU
(
module_GetName
(
p_module
,
0
)
),
i_access_method
==
CAPTURE_ACCESS
);
module_
Put
(
p_module
);
module_
release
(
p_module
);
}
p_module
=
module_Find
(
VLC_OBJECT
(
p_intf
),
"pvr"
);
...
...
@@ -526,7 +526,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
input_tab_array
.
Add
(
autopanel
);
notebook
->
AddPage
(
autopanel
,
wxU
(
module_GetName
(
p_module
,
0
)
),
i_access_method
==
CAPTURE_ACCESS
);
module_
Put
(
p_module
);
module_
release
(
p_module
);
}
p_module
=
module_Find
(
VLC_OBJECT
(
p_intf
),
"dvb"
);
...
...
@@ -537,7 +537,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
input_tab_array
.
Add
(
autopanel
);
notebook
->
AddPage
(
autopanel
,
wxU
(
module_GetName
(
p_module
,
0
)
),
i_access_method
==
CAPTURE_ACCESS
);
module_
Put
(
p_module
);
module_
release
(
p_module
);
}
p_module
=
module_Find
(
VLC_OBJECT
(
p_intf
),
"dshow"
);
...
...
@@ -548,7 +548,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
input_tab_array
.
Add
(
autopanel
);
notebook
->
AddPage
(
autopanel
,
wxU
(
module_GetName
(
p_module
,
0
)
),
i_access_method
==
CAPTURE_ACCESS
);
module_
Put
(
p_module
);
module_
release
(
p_module
);
}
/* Update Disc panel */
...
...
modules/gui/wxwidgets/dialogs/preferences.cpp
View file @
2ba61dee
...
...
@@ -1033,7 +1033,7 @@ PrefsPanel::PrefsPanel( wxWindow* parent, intf_thread_t *_p_intf,
if
(
config_data
->
i_type
==
TYPE_MODULE
)
{
module_
Put
(
p_module
);
module_
release
(
p_module
);
}
else
{
...
...
src/libvlccore.sym
View file @
2ba61dee
...
...
@@ -211,12 +211,13 @@ module_GetHelp
__module_GetModulesNamesForCapability
module_GetName
module_GetObjName
module_hold
module_IsCapable
module_list_free
module_list_get
__module_Need
module_Put
module_PutConfig
module_release
__module_Unneed
__msg_Dbg
__msg_DisableObjectPrinting
...
...
src/modules/modules.c
View file @
2ba61dee
...
...
@@ -325,6 +325,17 @@ const char *module_GetHelp( const module_t *m )
return
m
->
psz_help
;
}
module_t
*
module_hold
(
module_t
*
m
)
{
vlc_hold
(
&
m
->
vlc_gc_data
);
return
m
;
}
void
module_release
(
module_t
*
m
)
{
vlc_release
(
&
m
->
vlc_gc_data
);
}
/**
* Frees the flat list of VLC modules.
* @param list list obtained by module_list_get
...
...
@@ -749,19 +760,6 @@ module_t *__module_Find( vlc_object_t *p_this, const char * psz_name )
return
module
;
}
/**
* Release a module_t pointer from module_Find().
*
* \param module the module to release
* \return nothing
*/
void
module_Put
(
module_t
*
module
)
{
module_release
(
module
);
}
/**
* Tell if a module exists and release it in thic case
*
...
...
@@ -773,14 +771,8 @@ bool __module_Exists( vlc_object_t *p_this, const char * psz_name )
{
module_t
*
p_module
=
__module_Find
(
p_this
,
psz_name
);
if
(
p_module
)
{
module_Put
(
p_module
);
return
true
;
}
else
{
return
false
;
}
module_release
(
p_module
);
return
true
!=
NULL
;
}
/**
...
...
src/modules/modules.h
View file @
2ba61dee
...
...
@@ -149,17 +149,6 @@ struct module_t
bool
b_loaded
;
/* Set to true if the dll is loaded */
};
static
inline
module_t
*
module_hold
(
module_t
*
m
)
{
vlc_hold
(
&
m
->
vlc_gc_data
);
return
m
;
}
static
inline
void
module_release
(
module_t
*
m
)
{
vlc_release
(
&
m
->
vlc_gc_data
);
}
#define module_InitBank(a) __module_InitBank(VLC_OBJECT(a))
void
__module_InitBank
(
vlc_object_t
*
);
#define module_LoadBuiltins(a) __module_LoadBuiltins(VLC_OBJECT(a))
...
...
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