Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
219e1dea
Commit
219e1dea
authored
Jun 28, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sizeof(vlc_object_t) as appropriate
parent
2d7ef1f4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
modules/misc/gtk_main.c
modules/misc/gtk_main.c
+1
-1
modules/misc/testsuite/test4.c
modules/misc/testsuite/test4.c
+4
-4
modules/video_filter/remoteosd.c
modules/video_filter/remoteosd.c
+3
-2
modules/video_output/msw/wingdi.c
modules/video_output/msw/wingdi.c
+1
-1
No files found.
modules/misc/gtk_main.c
View file @
219e1dea
...
@@ -99,7 +99,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -99,7 +99,7 @@ static int Open( vlc_object_t *p_this )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
p_gtk_main
=
vlc_object_create
(
p_this
,
VLC_OBJECT_GENERIC
);
p_gtk_main
=
vlc_object_create
(
p_this
,
sizeof
(
vlc_object_t
)
);
/* Only initialize gthreads if it's the first time we do it */
/* Only initialize gthreads if it's the first time we do it */
if
(
!
g_thread_supported
()
)
if
(
!
g_thread_supported
()
)
...
...
modules/misc/testsuite/test4.c
View file @
219e1dea
...
@@ -168,7 +168,7 @@ static int Callback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -168,7 +168,7 @@ static int Callback( vlc_object_t *p_this, char const *psz_cmd,
for
(
i
=
0
;
i
<
10
;
i
++
)
for
(
i
=
0
;
i
<
10
;
i
++
)
{
{
pp_objects
[
i
]
=
vlc_object_create
(
p_this
,
VLC_OBJECT_GENERIC
);
pp_objects
[
i
]
=
vlc_object_create
(
p_this
,
sizeof
(
vlc_object_t
)
);
vlc_object_attach
(
pp_objects
[
i
],
p_this
);
vlc_object_attach
(
pp_objects
[
i
],
p_this
);
vlc_thread_create
(
pp_objects
[
i
],
"foo"
,
MyThread
,
0
,
true
);
vlc_thread_create
(
pp_objects
[
i
],
"foo"
,
MyThread
,
0
,
true
);
}
}
...
@@ -300,7 +300,7 @@ static int Stress( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -300,7 +300,7 @@ static int Stress( vlc_object_t *p_this, char const *psz_cmd,
start
=
mdate
();
start
=
mdate
();
for
(
i
=
0
;
i
<
MAXOBJ
*
i_level
;
i
++
)
for
(
i
=
0
;
i
<
MAXOBJ
*
i_level
;
i
++
)
{
{
pp_objects
[
i
]
=
vlc_object_create
(
p_this
,
VLC_OBJECT_GENERIC
);
pp_objects
[
i
]
=
vlc_object_create
(
p_this
,
sizeof
(
vlc_object_t
)
);
}
}
printf
(
" - randomly looking up %i objects
\n
"
,
MAXLOOK
*
i_level
);
printf
(
" - randomly looking up %i objects
\n
"
,
MAXLOOK
*
i_level
);
...
@@ -385,7 +385,7 @@ static int Stress( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -385,7 +385,7 @@ static int Stress( vlc_object_t *p_this, char const *psz_cmd,
MAXTH
*
i_level
,
MAXOBJ
/
MAXTH
);
MAXTH
*
i_level
,
MAXOBJ
/
MAXTH
);
for
(
i
=
0
;
i
<
MAXTH
*
i_level
;
i
++
)
for
(
i
=
0
;
i
<
MAXTH
*
i_level
;
i
++
)
{
{
pp_objects
[
i
]
=
vlc_object_create
(
p_this
,
VLC_OBJECT_GENERIC
);
pp_objects
[
i
]
=
vlc_object_create
(
p_this
,
sizeof
(
vlc_object_t
)
);
vlc_thread_create
(
pp_objects
[
i
],
"foo"
,
Dummy
,
0
,
true
);
vlc_thread_create
(
pp_objects
[
i
],
"foo"
,
Dummy
,
0
,
true
);
}
}
...
@@ -417,7 +417,7 @@ static void * Dummy( vlc_object_t *p_this )
...
@@ -417,7 +417,7 @@ static void * Dummy( vlc_object_t *p_this )
for
(
i
=
0
;
i
<
MAXOBJ
/
MAXTH
;
i
++
)
for
(
i
=
0
;
i
<
MAXOBJ
/
MAXTH
;
i
++
)
{
{
pp_objects
[
i
]
=
vlc_object_create
(
p_this
,
VLC_OBJECT_GENERIC
);
pp_objects
[
i
]
=
vlc_object_create
(
p_this
,
sizeof
(
vlc_object_t
)
);
}
}
vlc_thread_ready
(
p_this
);
vlc_thread_ready
(
p_this
);
...
...
modules/video_filter/remoteosd.c
View file @
219e1dea
...
@@ -333,7 +333,8 @@ static int CreateFilter ( vlc_object_t *p_this )
...
@@ -333,7 +333,8 @@ static int CreateFilter ( vlc_object_t *p_this )
vlc_gcrypt_init
();
vlc_gcrypt_init
();
/* create the vnc worker thread */
/* create the vnc worker thread */
p_sys
->
p_worker_thread
=
vlc_object_create
(
p_this
,
VLC_OBJECT_GENERIC
);
p_sys
->
p_worker_thread
=
vlc_object_create
(
p_this
,
sizeof
(
vlc_object_t
)
);
vlc_object_attach
(
p_sys
->
p_worker_thread
,
p_this
);
vlc_object_attach
(
p_sys
->
p_worker_thread
,
p_this
);
if
(
vlc_thread_create
(
p_sys
->
p_worker_thread
,
"vnc worker thread"
,
if
(
vlc_thread_create
(
p_sys
->
p_worker_thread
,
"vnc worker thread"
,
vnc_worker_thread
,
vnc_worker_thread
,
...
@@ -732,7 +733,7 @@ static void vnc_worker_thread( vlc_object_t *p_thread_obj )
...
@@ -732,7 +733,7 @@ static void vnc_worker_thread( vlc_object_t *p_thread_obj )
/* create the update request thread */
/* create the update request thread */
p_sys
->
p_update_request_thread
=
vlc_object_create
(
p_filter
,
p_sys
->
p_update_request_thread
=
vlc_object_create
(
p_filter
,
VLC_OBJECT_GENERIC
);
sizeof
(
vlc_object_t
)
);
vlc_object_attach
(
p_sys
->
p_update_request_thread
,
p_filter
);
vlc_object_attach
(
p_sys
->
p_update_request_thread
,
p_filter
);
if
(
vlc_thread_create
(
p_sys
->
p_update_request_thread
,
if
(
vlc_thread_create
(
p_sys
->
p_update_request_thread
,
"vnc update request thread"
,
"vnc update request thread"
,
...
...
modules/video_output/msw/wingdi.c
View file @
219e1dea
...
@@ -199,7 +199,7 @@ static int OpenVideo ( vlc_object_t *p_this )
...
@@ -199,7 +199,7 @@ static int OpenVideo ( vlc_object_t *p_this )
#endif
#endif
p_vout
->
p_sys
->
p_event
=
(
vlc_object_t
*
)
p_vout
->
p_sys
->
p_event
=
(
vlc_object_t
*
)
vlc_object_create
(
p_vout
,
VLC_OBJECT_GENERIC
);
vlc_object_create
(
p_vout
,
sizeof
(
vlc_object_t
)
);
if
(
!
p_vout
->
p_sys
->
p_event
)
if
(
!
p_vout
->
p_sys
->
p_event
)
{
{
free
(
p_vout
->
p_sys
);
free
(
p_vout
->
p_sys
);
...
...
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