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
b941c1e4
Commit
b941c1e4
authored
Jan 28, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_object_get(): removes unused parameter
parent
fb4f6e01
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
31 additions
and
40 deletions
+31
-40
include/vlc_objects.h
include/vlc_objects.h
+1
-4
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+1
-1
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+1
-2
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+1
-1
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+7
-8
modules/gui/wince/menus.cpp
modules/gui/wince/menus.cpp
+2
-2
modules/gui/wince/preferences.cpp
modules/gui/wince/preferences.cpp
+1
-1
modules/gui/wxwidgets/dialogs/preferences.cpp
modules/gui/wxwidgets/dialogs/preferences.cpp
+1
-1
modules/gui/wxwidgets/menus.cpp
modules/gui/wxwidgets/menus.cpp
+2
-4
modules/misc/testsuite/test4.c
modules/misc/testsuite/test4.c
+1
-1
src/control/media_instance.c
src/control/media_instance.c
+6
-8
src/control/video.c
src/control/video.c
+3
-3
src/libvlc.sym
src/libvlc.sym
+1
-1
src/misc/objects.c
src/misc/objects.c
+3
-3
No files found.
include/vlc_objects.h
View file @
b941c1e4
...
...
@@ -98,7 +98,7 @@ VLC_EXPORT( void *, __vlc_object_create, ( vlc_object_t *, int ) );
VLC_EXPORT
(
void
,
__vlc_object_destroy
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
,
__vlc_object_attach
,
(
vlc_object_t
*
,
vlc_object_t
*
)
);
VLC_EXPORT
(
void
,
__vlc_object_detach
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
*
,
__vlc_object_get
,
(
vlc_object_t
*
,
int
)
);
VLC_EXPORT
(
void
*
,
vlc_object_get
,
(
int
)
);
VLC_EXPORT
(
void
*
,
__vlc_object_find
,
(
vlc_object_t
*
,
int
,
int
)
);
VLC_EXPORT
(
void
*
,
__vlc_object_find_name
,
(
vlc_object_t
*
,
const
char
*
,
int
)
);
VLC_EXPORT
(
void
,
__vlc_object_yield
,
(
vlc_object_t
*
)
);
...
...
@@ -121,9 +121,6 @@ VLC_EXPORT( void, vlc_list_release, ( vlc_list_t * ) );
#define vlc_object_attach(a,b) \
__vlc_object_attach( VLC_OBJECT(a), VLC_OBJECT(b) )
#define vlc_object_get(a,b) \
__vlc_object_get( VLC_OBJECT(a),b)
#define vlc_object_find(a,b,c) \
__vlc_object_find( VLC_OBJECT(a),b,c)
...
...
modules/gui/beos/PreferencesWindow.cpp
View file @
b941c1e4
...
...
@@ -425,7 +425,7 @@ ConfigItem::ConfigItem( intf_thread_t * _p_intf, char * name,
module_t
*
p_module
=
NULL
;
if
(
fType
==
TYPE_MODULE
)
{
p_module
=
(
module_t
*
)
vlc_object_get
(
p_intf
,
fObjectId
);
p_module
=
(
module_t
*
)
vlc_object_get
(
fObjectId
);
}
else
{
...
...
modules/gui/macosx/controls.m
View file @
b941c1e4
...
...
@@ -786,8 +786,7 @@
vlc_thread_set_priority
(
VLCIntf
,
VLC_THREAD_PRIORITY_LOW
);
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
VLCIntf
,
[
o_data
objectID
]
);
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
[
o_data
objectID
]
);
if
(
p_object
!=
NULL
)
{
...
...
modules/gui/macosx/prefs.m
View file @
b941c1e4
...
...
@@ -550,7 +550,7 @@ static VLCTreeItem *o_root_item = nil;
/* Get a pointer to the module */
if
(
i_object_category
==
-
1
)
{
p_parser
=
(
module_t
*
)
vlc_object_get
(
p_intf
,
i_object_id
);
p_parser
=
(
module_t
*
)
vlc_object_get
(
i_object_id
);
if
(
!
p_parser
||
((
vlc_object_t
*
)
p_parser
)
->
i_object_type
!=
VLC_OBJECT_MODULE
)
{
/* 0OOoo something went really bad */
...
...
modules/gui/qt4/menus.cpp
View file @
b941c1e4
...
...
@@ -54,10 +54,10 @@ static QActionGroup *currentGroup;
// Add static entries to menus
void
addDPStaticEntry
(
QMenu
*
menu
,
const
QString
text
,
char
*
help
,
char
*
icon
,
c
onst
c
har
*
help
,
c
onst
c
har
*
icon
,
const
char
*
member
,
char
*
shortcut
)
c
onst
c
har
*
shortcut
)
{
if
(
!
EMPTY_STR
(
icon
)
>
0
)
{
...
...
@@ -78,8 +78,8 @@ void addDPStaticEntry( QMenu *menu,
void
addMIMStaticEntry
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
,
const
QString
text
,
char
*
help
,
char
*
icon
,
c
onst
c
har
*
help
,
c
onst
c
har
*
icon
,
const
char
*
member
)
{
if
(
strlen
(
icon
)
>
0
)
...
...
@@ -775,7 +775,7 @@ QMenu * QVLCMenu::Populate( intf_thread_t *p_intf,
continue
;
}
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
p_intf
,
objects
[
i
]
);
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
objects
[
i
]
);
if
(
p_object
==
NULL
)
continue
;
b_section_empty
=
VLC_FALSE
;
...
...
@@ -1046,8 +1046,7 @@ void QVLCMenu::CreateAndConnect( QMenu *menu, const char *psz_var,
void
QVLCMenu
::
DoAction
(
intf_thread_t
*
p_intf
,
QObject
*
data
)
{
MenuItemData
*
itemData
=
qobject_cast
<
MenuItemData
*>
(
data
);
vlc_object_t
*
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
p_intf
,
itemData
->
i_object_id
);
vlc_object_t
*
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
itemData
->
i_object_id
);
if
(
p_object
==
NULL
)
return
;
var_Set
(
p_object
,
itemData
->
psz_var
,
itemData
->
val
);
...
...
modules/gui/wince/menus.cpp
View file @
b941c1e4
...
...
@@ -493,7 +493,7 @@ void RefreshMenu( intf_thread_t *p_intf, vector<MenuItemExt*> *p_menu_list,
continue
;
}
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
p
_intf
,
p
i_objects
[
i
]
);
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
pi_objects
[
i
]
);
if
(
p_object
==
NULL
)
continue
;
b_section_empty
=
VLC_FALSE
;
...
...
@@ -764,7 +764,7 @@ void OnMenuEvent( intf_thread_t *p_intf, int id )
if
(
p_menuitemext
)
{
vlc_object_t
*
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
p_
intf
,
p_
menuitemext
->
i_object_id
);
vlc_object_get
(
p_menuitemext
->
i_object_id
);
if
(
p_object
==
NULL
)
return
;
var_Set
(
p_object
,
p_menuitemext
->
psz_var
,
p_menuitemext
->
val
);
...
...
modules/gui/wince/preferences.cpp
View file @
b941c1e4
...
...
@@ -705,7 +705,7 @@ PrefsPanel::PrefsPanel( HWND parent, HINSTANCE hInst, intf_thread_t *_p_intf,
else
{
/* Get a pointer to the module */
p_module
=
(
module_t
*
)
vlc_object_get
(
p_intf
,
i_object_id
);
p_module
=
(
module_t
*
)
vlc_object_get
(
i_object_id
);
if
(
p_module
->
i_object_type
!=
VLC_OBJECT_MODULE
)
{
/* 0OOoo something went really bad */
...
...
modules/gui/wxwidgets/dialogs/preferences.cpp
View file @
b941c1e4
...
...
@@ -900,7 +900,7 @@ PrefsPanel::PrefsPanel( wxWindow* parent, intf_thread_t *_p_intf,
if
(
config_data
->
i_type
==
TYPE_MODULE
)
{
p_module
=
(
module_t
*
)
vlc_object_get
(
p_intf
,
config_data
->
i_object_id
);
vlc_object_get
(
config_data
->
i_object_id
);
}
else
{
...
...
modules/gui/wxwidgets/menus.cpp
View file @
b941c1e4
...
...
@@ -591,8 +591,7 @@ void Menu::Populate( ArrayOfStrings & ras_varnames,
continue
;
}
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
p_intf
,
rai_objects
[
i
]
);
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
rai_objects
[
i
]
);
if
(
p_object
==
NULL
)
continue
;
b_section_empty
=
VLC_FALSE
;
...
...
@@ -1026,8 +1025,7 @@ void MenuEvtHandler::OnMenuEvent( wxCommandEvent& event )
wxMenuItemExt
*
p_menuitemext
=
(
wxMenuItemExt
*
)
p_menuitem
;
vlc_object_t
*
p_object
;
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
p_intf
,
p_menuitemext
->
i_object_id
);
p_object
=
(
vlc_object_t
*
)
vlc_object_get
(
p_menuitemext
->
i_object_id
);
if
(
p_object
==
NULL
)
return
;
wxMutexGuiLeave
();
// We don't want deadlocks
...
...
modules/misc/testsuite/test4.c
View file @
b941c1e4
...
...
@@ -306,7 +306,7 @@ static int Stress( vlc_object_t *p_this, char const *psz_cmd,
for
(
i
=
MAXLOOK
*
i_level
;
i
--
;
)
{
int
id
=
(
int
)
(
MAXOBJ
*
i_level
*
1
.
0
*
rand
()
/
(
RAND_MAX
));
vlc_object_get
(
p
_this
,
p
p_objects
[
id
]
->
i_object_id
);
vlc_object_get
(
pp_objects
[
id
]
->
i_object_id
);
vlc_object_release
(
p_this
);
}
...
...
src/control/media_instance.c
View file @
b941c1e4
...
...
@@ -71,9 +71,7 @@ static void release_input_thread( libvlc_media_instance_t *p_mi )
if
(
!
p_mi
||
p_mi
->
i_input_id
==
-
1
)
return
;
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_mi
->
p_libvlc_instance
->
p_libvlc_int
,
p_mi
->
i_input_id
);
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_mi
->
i_input_id
);
p_mi
->
i_input_id
=
-
1
;
...
...
@@ -128,9 +126,7 @@ input_thread_t *libvlc_get_input_thread( libvlc_media_instance_t *p_mi,
RAISENULL
(
"Input is NULL"
);
}
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_mi
->
p_libvlc_instance
->
p_libvlc_int
,
p_mi
->
i_input_id
);
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_mi
->
i_input_id
);
if
(
!
p_input_thread
)
{
vlc_mutex_unlock
(
&
p_mi
->
object_lock
);
...
...
@@ -149,6 +145,7 @@ input_state_changed( vlc_object_t * p_this, char const * psz_cmd,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_userdata
)
{
VLC_UNUSED
(
oldval
);
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
libvlc_event_t
event
;
libvlc_event_type_t
type
=
newval
.
i_int
;
...
...
@@ -190,6 +187,7 @@ input_position_changed( vlc_object_t * p_this, char const * psz_cmd,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_userdata
)
{
VLC_UNUSED
(
oldval
);
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
vlc_value_t
val
;
...
...
@@ -222,6 +220,7 @@ input_time_changed( vlc_object_t * p_this, char const * psz_cmd,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_userdata
)
{
VLC_UNUSED
(
oldval
);
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
vlc_value_t
val
;
...
...
@@ -540,8 +539,7 @@ void libvlc_media_instance_play( libvlc_media_instance_t *p_mi,
p_mi
->
p_md
->
p_input_item
,
VLC_FALSE
);
/* Released in _release() */
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_mi
->
p_libvlc_instance
->
p_libvlc_int
,
p_mi
->
i_input_id
);
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_mi
->
i_input_id
);
if
(
!
p_input_thread
)
{
...
...
src/control/video.c
View file @
b941c1e4
...
...
@@ -147,9 +147,7 @@ libvlc_video_take_snapshot( libvlc_media_instance_t *p_mi, char *psz_filepath,
var_SetInteger
(
p_vout
,
"snapshot-width"
,
i_width
);
var_SetInteger
(
p_vout
,
"snapshot-height"
,
i_height
);
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_mi
->
p_libvlc_instance
->
p_libvlc_int
,
p_mi
->
i_input_id
);
p_input_thread
=
(
input_thread_t
*
)
vlc_object_get
(
p_mi
->
i_input_id
);
if
(
!
p_input_thread
)
{
libvlc_exception_raise
(
p_e
,
"Input does not exist"
);
...
...
@@ -278,6 +276,8 @@ void libvlc_video_set_parent( libvlc_instance_t *p_instance, libvlc_drawable_t d
libvlc_drawable_t
libvlc_video_get_parent
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_e
)
{
VLC_UNUSED
(
p_e
);
libvlc_drawable_t
result
;
result
=
var_GetInteger
(
p_instance
->
p_libvlc_int
,
"drawable"
);
...
...
src/libvlc.sym
View file @
b941c1e4
...
...
@@ -416,7 +416,7 @@ __vlc_object_destroy
__vlc_object_detach
__vlc_object_find
__vlc_object_find_name
__
vlc_object_get
vlc_object_get
__vlc_object_kill
__vlc_object_lock
__vlc_object_release
...
...
src/misc/objects.c
View file @
b941c1e4
...
...
@@ -708,7 +708,7 @@ void __vlc_object_kill( vlc_object_t *p_this )
* This function looks for the object whose i_object_id field is i_id. We
* use a dichotomy so that lookups are in log2(n).
*****************************************************************************/
void
*
__vlc_object_get
(
vlc_object_t
*
p_this
,
int
i_id
)
void
*
vlc_object_get
(
int
i_id
)
{
int
i_max
,
i_middle
;
vlc_object_t
**
pp_objects
;
...
...
@@ -1074,11 +1074,11 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
char
*
end
;
int
i_id
=
strtol
(
newval
.
psz_string
,
&
end
,
0
);
if
(
end
!=
newval
.
psz_string
)
p_object
=
vlc_object_get
(
p_this
,
i_id
);
p_object
=
vlc_object_get
(
i_id
);
else
{
/* try using the object's name to find it */
vlc_object_t
*
p_libvlc
=
vlc_object_get
(
p_this
,
1
);
vlc_object_t
*
p_libvlc
=
vlc_object_get
(
1
);
if
(
p_libvlc
)
{
/* Look in p_libvlc's children tree */
...
...
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