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
e3133936
Commit
e3133936
authored
Jul 21, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove VLC_VAR_MUTEX class
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
3af03657
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
20 deletions
+0
-20
include/vlc_variables.h
include/vlc_variables.h
+0
-1
modules/lua/libs/variables.c
modules/lua/libs/variables.c
+0
-7
src/misc/objects.c
src/misc/objects.c
+0
-2
src/misc/variables.c
src/misc/variables.c
+0
-10
No files found.
include/vlc_variables.h
View file @
e3133936
...
...
@@ -59,7 +59,6 @@
#define VLC_VAR_FLOAT 0x0050
#define VLC_VAR_TIME 0x0060
#define VLC_VAR_ADDRESS 0x0070
#define VLC_VAR_MUTEX 0x0080
#define VLC_VAR_COORDS 0x00A0
/**@}*/
...
...
modules/lua/libs/variables.c
View file @
e3133936
...
...
@@ -75,9 +75,6 @@ static int vlclua_pushvalue( lua_State *L, int i_type, vlc_value_t val, bool b_e
case
VLC_VAR_ADDRESS
:
vlclua_error
(
L
);
break
;
case
VLC_VAR_MUTEX
:
vlclua_error
(
L
);
break
;
default:
vlclua_error
(
L
);
}
...
...
@@ -127,9 +124,6 @@ static int vlclua_tovalue( lua_State *L, int i_type, vlc_value_t *val )
case
VLC_VAR_ADDRESS
:
vlclua_error
(
L
);
break
;
case
VLC_VAR_MUTEX
:
vlclua_error
(
L
);
break
;
default:
vlclua_error
(
L
);
}
...
...
@@ -387,7 +381,6 @@ static int vlclua_add_callback( lua_State *L )
case
VLC_VAR_TIME
:
break
;
case
VLC_VAR_ADDRESS
:
case
VLC_VAR_MUTEX
:
default:
return
vlclua_error
(
L
);
}
...
...
src/misc/objects.c
View file @
e3133936
...
...
@@ -568,7 +568,6 @@ static void DumpVariable (const void *data, const VISIT which, const int depth)
MYCASE
(
TIME
,
"time"
);
MYCASE
(
COORDS
,
"coords"
);
MYCASE
(
ADDRESS
,
"address"
);
MYCASE
(
MUTEX
,
"mutex"
);
#undef MYCASE
}
printf
(
" *-o
\"
%s
\"
(%s"
,
p_var
->
psz_name
,
psz_type
);
...
...
@@ -584,7 +583,6 @@ static void DumpVariable (const void *data, const VISIT which, const int depth)
switch
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
{
case
VLC_VAR_VOID
:
case
VLC_VAR_MUTEX
:
break
;
case
VLC_VAR_BOOL
:
printf
(
": %s"
,
p_var
->
val
.
b_bool
?
"true"
:
"false"
);
...
...
src/misc/variables.c
View file @
e3133936
...
...
@@ -91,7 +91,6 @@ static void DupString( vlc_value_t *p_val )
static
void
FreeDummy
(
vlc_value_t
*
p_val
)
{
(
void
)
p_val
;
/* unused */
}
static
void
FreeString
(
vlc_value_t
*
p_val
)
{
free
(
p_val
->
psz_string
);
}
static
void
FreeMutex
(
vlc_value_t
*
p_val
)
{
vlc_mutex_destroy
(
(
vlc_mutex_t
*
)
p_val
->
p_address
);
free
(
p_val
->
p_address
);
}
static
void
FreeList
(
vlc_value_t
*
p_val
)
{
...
...
@@ -103,9 +102,6 @@ static void FreeList( vlc_value_t *p_val )
case
VLC_VAR_STRING
:
FreeString
(
&
p_val
->
p_list
->
p_values
[
i
]
);
break
;
case
VLC_VAR_MUTEX
:
FreeMutex
(
&
p_val
->
p_list
->
p_values
[
i
]
);
break
;
default:
break
;
}
...
...
@@ -125,7 +121,6 @@ addr_ops = { CmpAddress, DupDummy, FreeDummy, },
bool_ops
=
{
CmpBool
,
DupDummy
,
FreeDummy
,
},
float_ops
=
{
CmpFloat
,
DupDummy
,
FreeDummy
,
},
int_ops
=
{
CmpInt
,
DupDummy
,
FreeDummy
,
},
mutex_ops
=
{
CmpAddress
,
DupDummy
,
FreeMutex
,
},
string_ops
=
{
CmpString
,
DupString
,
FreeString
,
},
time_ops
=
{
CmpTime
,
DupDummy
,
FreeDummy
,
},
coords_ops
=
{
NULL
,
DupDummy
,
FreeDummy
,
};
...
...
@@ -249,11 +244,6 @@ int var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
p_var
->
ops
=
&
addr_ops
;
p_var
->
val
.
p_address
=
NULL
;
break
;
case
VLC_VAR_MUTEX
:
p_var
->
ops
=
&
mutex_ops
;
p_var
->
val
.
p_address
=
malloc
(
sizeof
(
vlc_mutex_t
)
);
vlc_mutex_init
(
(
vlc_mutex_t
*
)
p_var
->
val
.
p_address
);
break
;
default:
p_var
->
ops
=
&
void_ops
;
#ifndef NDEBUG
...
...
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