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
1e1fa171
Commit
1e1fa171
authored
Jan 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Privatize vlc_object_t.i_object_type
parent
98eb1db3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
15 deletions
+16
-15
include/vlc_common.h
include/vlc_common.h
+0
-1
src/input/decoder.c
src/input/decoder.c
+1
-1
src/input/input.c
src/input/input.c
+3
-4
src/input/stream.c
src/input/stream.c
+2
-2
src/libvlc.h
src/libvlc.h
+2
-0
src/misc/objects.c
src/misc/objects.c
+7
-6
src/video_output/video_output.c
src/video_output/video_output.c
+1
-1
No files found.
include/vlc_common.h
View file @
1e1fa171
...
...
@@ -509,7 +509,6 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
* these members are common for all vlc objects \
*/
\
/**@{*/
\
int i_object_type; \
const char *psz_object_type; \
char *psz_object_name; \
\
...
...
src/input/decoder.c
View file @
1e1fa171
...
...
@@ -1940,7 +1940,7 @@ static void DecoderProcess( decoder_t *p_dec, block_t *p_block )
}
#ifdef ENABLE_SOUT
if
(
p_dec
->
i_object_type
==
VLC_OBJECT_PACKETIZER
)
if
(
vlc_internals
(
p_dec
)
->
i_object_type
==
VLC_OBJECT_PACKETIZER
)
{
if
(
p_block
)
p_block
->
i_flags
&=
~
BLOCK_FLAG_CORE_PRIVATE_MASK
;
...
...
src/input/input.c
View file @
1e1fa171
...
...
@@ -489,11 +489,10 @@ static void ObjectKillChildrens( input_thread_t *p_input, vlc_object_t *p_obj )
int
i
;
/* FIXME ObjectKillChildrens seems a very bad idea in fact */
i
f
(
p_obj
->
i_object_type
==
VLC_OBJECT_VOUT
||
p_obj
->
i_object_type
==
VLC_OBJECT_AOUT
||
i
=
vlc_internals
(
p_obj
)
->
i_object_type
;
if
(
i
==
VLC_OBJECT_VOUT
||
i
==
VLC_OBJECT_AOUT
||
p_obj
==
VLC_OBJECT
(
p_input
->
p
->
p_sout
)
||
p_obj
->
i_object_type
==
VLC_OBJECT_DECODER
||
p_obj
->
i_object_type
==
VLC_OBJECT_PACKETIZER
)
i
==
VLC_OBJECT_DECODER
||
i
==
VLC_OBJECT_PACKETIZER
)
return
;
vlc_object_kill
(
p_obj
);
...
...
src/input/stream.c
View file @
1e1fa171
...
...
@@ -1674,7 +1674,7 @@ static int AReadStream( stream_t *s, void *p_read, unsigned int i_read )
int
i_total
=
0
;
if
(
s
->
p_parent
&&
s
->
p_parent
->
p_parent
&&
s
->
p_parent
->
p_parent
->
i_object_type
==
VLC_OBJECT_INPUT
)
vlc_internals
(
s
->
p_parent
->
p_parent
)
->
i_object_type
==
VLC_OBJECT_INPUT
)
p_input
=
(
input_thread_t
*
)
s
->
p_parent
->
p_parent
;
if
(
!
p_sys
->
i_list
)
...
...
@@ -1744,7 +1744,7 @@ static block_t *AReadBlock( stream_t *s, bool *pb_eof )
int
i_total
=
0
;
if
(
s
->
p_parent
&&
s
->
p_parent
->
p_parent
&&
s
->
p_parent
->
p_parent
->
i_object_type
==
VLC_OBJECT_INPUT
)
vlc_internals
(
s
->
p_parent
->
p_parent
)
->
i_object_type
==
VLC_OBJECT_INPUT
)
p_input
=
(
input_thread_t
*
)
s
->
p_parent
->
p_parent
;
if
(
!
p_sys
->
i_list
)
...
...
src/libvlc.h
View file @
1e1fa171
...
...
@@ -146,6 +146,8 @@ VLC_EXPORT(char **, module_GetModulesNamesForCapability,
*/
typedef
struct
vlc_object_internals_t
{
int
i_object_type
;
/* Object type, deprecated */
/* Object variables */
variable_t
*
p_vars
;
vlc_mutex_t
var_lock
;
...
...
src/misc/objects.c
View file @
1e1fa171
...
...
@@ -129,7 +129,7 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size,
assert
(
i_size
>=
sizeof
(
vlc_object_t
));
p_new
=
(
vlc_object_t
*
)(
p_priv
+
1
);
p_
new
->
i_object_type
=
i_type
;
p_
priv
->
i_object_type
=
i_type
;
p_new
->
psz_object_type
=
psz_type
;
p_new
->
psz_object_name
=
NULL
;
...
...
@@ -504,7 +504,8 @@ void * __vlc_object_find( vlc_object_t *p_this, int i_type, int i_mode )
vlc_object_t
*
p_found
;
/* If we are of the requested type ourselves, don't look further */
if
(
!
(
i_mode
&
FIND_STRICT
)
&&
p_this
->
i_object_type
==
i_type
)
if
(
!
(
i_mode
&
FIND_STRICT
)
&&
vlc_internals
(
p_this
)
->
i_object_type
==
i_type
)
{
vlc_object_hold
(
p_this
);
return
p_this
;
...
...
@@ -1025,7 +1026,7 @@ static vlc_object_t * FindObject( vlc_object_t *p_this, int i_type, int i_mode )
p_tmp
=
p_this
->
p_parent
;
if
(
p_tmp
)
{
if
(
p_tmp
->
i_object_type
==
i_type
)
if
(
vlc_internals
(
p_tmp
)
->
i_object_type
==
i_type
)
{
vlc_object_hold
(
p_tmp
);
return
p_tmp
;
...
...
@@ -1041,7 +1042,7 @@ static vlc_object_t * FindObject( vlc_object_t *p_this, int i_type, int i_mode )
for
(
i
=
vlc_internals
(
p_this
)
->
i_children
;
i
--
;
)
{
p_tmp
=
vlc_internals
(
p_this
)
->
pp_children
[
i
];
if
(
p_tmp
->
i_object_type
==
i_type
)
if
(
vlc_internals
(
p_tmp
)
->
i_object_type
==
i_type
)
{
vlc_object_hold
(
p_tmp
);
return
p_tmp
;
...
...
@@ -1288,7 +1289,7 @@ static int CountChildren( vlc_object_t *p_this, int i_type )
{
p_tmp
=
vlc_internals
(
p_this
)
->
pp_children
[
i
];
if
(
p_tmp
->
i_object_type
==
i_type
)
if
(
vlc_internals
(
p_tmp
)
->
i_object_type
==
i_type
)
{
i_count
++
;
}
...
...
@@ -1307,7 +1308,7 @@ static void ListChildren( vlc_list_t *p_list, vlc_object_t *p_this, int i_type )
{
p_tmp
=
vlc_internals
(
p_this
)
->
pp_children
[
i
];
if
(
p_tmp
->
i_object_type
==
i_type
)
if
(
vlc_internals
(
p_tmp
)
->
i_object_type
==
i_type
)
ListReplace
(
p_list
,
p_tmp
,
p_list
->
i_count
++
);
ListChildren
(
p_list
,
p_tmp
,
i_type
);
...
...
src/video_output/video_output.c
View file @
1e1fa171
...
...
@@ -420,7 +420,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
/* If the parent is not a VOUT object, that means we are at the start of
* the video output pipe */
if
(
p_parent
->
i_object_type
!=
VLC_OBJECT_VOUT
)
if
(
vlc_internals
(
p_parent
)
->
i_object_type
!=
VLC_OBJECT_VOUT
)
{
/* Look for the default filter configuration */
p_vout
->
p
->
psz_filter_chain
=
...
...
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