Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6b02ec70
Commit
6b02ec70
authored
Oct 29, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./src/misc/variables.c: simple change to var_Type() so that it returns
an error (value < 0) if the variable does not exist.
parent
319e629d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/misc/variables.c
src/misc/variables.c
+5
-4
No files found.
src/misc/variables.c
View file @
6b02ec70
...
...
@@ -2,7 +2,7 @@
* variables.c: routines for object variables handling
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: variables.c,v 1.1
1 2002/10/29 13:22:48
sam Exp $
* $Id: variables.c,v 1.1
2 2002/10/29 13:38:37
sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -420,9 +420,10 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name,
}
/*****************************************************************************
* var_Type: request a variable's type
, 0 if not found
* var_Type: request a variable's type
*****************************************************************************
*
* This function returns the variable type if it exists, or an error if the
* variable could not be found.
*****************************************************************************/
int
__var_Type
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
)
{
...
...
@@ -435,7 +436,7 @@ int __var_Type( vlc_object_t *p_this, const char *psz_name )
if
(
i_var
<
0
)
{
vlc_mutex_unlock
(
&
p_this
->
var_lock
);
return
0
;
return
i_var
;
}
i_type
=
p_this
->
p_vars
[
i_var
].
i_type
;
...
...
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