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
8eaff121
Commit
8eaff121
authored
Jan 27, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't print debug messages and don't do interaction on preparsing
parent
f3112de7
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
9 deletions
+30
-9
include/vlc_common.h
include/vlc_common.h
+1
-0
include/vlc_objects.h
include/vlc_objects.h
+5
-0
src/input/input.c
src/input/input.c
+2
-0
src/interface/interaction.c
src/interface/interaction.c
+5
-7
src/misc/messages.c
src/misc/messages.c
+7
-0
src/misc/modules.c
src/misc/modules.c
+2
-2
src/misc/objects.c
src/misc/objects.c
+8
-0
No files found.
include/vlc_common.h
View file @
8eaff121
...
@@ -474,6 +474,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
...
@@ -474,6 +474,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
\
\
/* Messages header */
\
/* Messages header */
\
char *psz_header; \
char *psz_header; \
int i_flags; \
\
\
/* Thread properties, if any */
\
/* Thread properties, if any */
\
vlc_bool_t b_thread; \
vlc_bool_t b_thread; \
...
...
include/vlc_objects.h
View file @
8eaff121
...
@@ -71,6 +71,11 @@
...
@@ -71,6 +71,11 @@
#define FIND_STRICT 0x0010
#define FIND_STRICT 0x0010
/* Object flags */
#define OBJECT_FLAGS_NODBG 0x0001
#define OBJECT_FLAGS_QUIET 0x0002
#define OBJECT_FLAGS_NOINTERACT 0x0004
/*****************************************************************************
/*****************************************************************************
* The vlc_object_t type. Yes, it's that simple :-)
* The vlc_object_t type. Yes, it's that simple :-)
*****************************************************************************/
*****************************************************************************/
...
...
src/input/input.c
View file @
8eaff121
...
@@ -320,6 +320,8 @@ int __input_Preparse( vlc_object_t *p_parent, input_item_t *p_item )
...
@@ -320,6 +320,8 @@ int __input_Preparse( vlc_object_t *p_parent, input_item_t *p_item )
/* Allocate descriptor */
/* Allocate descriptor */
p_input
=
Create
(
p_parent
,
p_item
,
NULL
,
VLC_TRUE
);
p_input
=
Create
(
p_parent
,
p_item
,
NULL
,
VLC_TRUE
);
p_input
->
i_flags
|=
OBJECT_FLAGS_NODBG
;
p_input
->
i_flags
|=
OBJECT_FLAGS_NOINTERACT
;
/* Now we can attach our new input */
/* Now we can attach our new input */
vlc_object_attach
(
p_input
,
p_parent
);
vlc_object_attach
(
p_input
,
p_parent
);
...
...
src/interface/interaction.c
View file @
8eaff121
...
@@ -73,6 +73,11 @@ int __intf_Interact( vlc_object_t *p_this, interaction_dialog_t *
...
@@ -73,6 +73,11 @@ int __intf_Interact( vlc_object_t *p_this, interaction_dialog_t *
p_dialog
->
i_id
=
++
p_interaction
->
i_last_id
;
p_dialog
->
i_id
=
++
p_interaction
->
i_last_id
;
}
}
if
(
p_this
->
i_flags
&
OBJECT_FLAGS_NOINTERACT
)
{
return
;
}
p_dialog
->
p_interaction
=
p_interaction
;
p_dialog
->
p_interaction
=
p_interaction
;
p_dialog
->
p_parent
=
p_this
;
p_dialog
->
p_parent
=
p_this
;
...
@@ -165,7 +170,6 @@ void intf_InteractionManage( playlist_t *p_playlist )
...
@@ -165,7 +170,6 @@ void intf_InteractionManage( playlist_t *p_playlist )
{
{
case
ANSWERED_DIALOG
:
case
ANSWERED_DIALOG
:
// Ask interface to hide it
// Ask interface to hide it
msg_Dbg
(
p_interaction
,
"Hiding dialog %i"
,
p_dialog
->
i_id
);
p_dialog
->
i_action
=
INTERACT_HIDE
;
p_dialog
->
i_action
=
INTERACT_HIDE
;
val
.
p_address
=
p_dialog
;
val
.
p_address
=
p_dialog
;
if
(
p_interaction
->
p_intf
)
if
(
p_interaction
->
p_intf
)
...
@@ -178,15 +182,11 @@ void intf_InteractionManage( playlist_t *p_playlist )
...
@@ -178,15 +182,11 @@ void intf_InteractionManage( playlist_t *p_playlist )
if
(
p_interaction
->
p_intf
)
if
(
p_interaction
->
p_intf
)
var_Set
(
p_interaction
->
p_intf
,
"interaction"
,
val
);
var_Set
(
p_interaction
->
p_intf
,
"interaction"
,
val
);
p_dialog
->
i_status
=
SENT_DIALOG
;
p_dialog
->
i_status
=
SENT_DIALOG
;
msg_Dbg
(
p_interaction
,
"Updating dialog %i, %i widgets"
,
p_dialog
->
i_id
,
p_dialog
->
i_widgets
);
break
;
break
;
case
HIDDEN_DIALOG
:
case
HIDDEN_DIALOG
:
if
(
!
(
p_dialog
->
i_flags
&
DIALOG_GOT_ANSWER
)
)
break
;
if
(
!
(
p_dialog
->
i_flags
&
DIALOG_GOT_ANSWER
)
)
break
;
if
(
!
(
p_dialog
->
i_flags
&
DIALOG_REUSABLE
)
)
if
(
!
(
p_dialog
->
i_flags
&
DIALOG_REUSABLE
)
)
{
{
msg_Dbg
(
p_interaction
,
"Destroying dialog %i"
,
p_dialog
->
i_id
);
p_dialog
->
i_action
=
INTERACT_DESTROY
;
p_dialog
->
i_action
=
INTERACT_DESTROY
;
val
.
p_address
=
p_dialog
;
val
.
p_address
=
p_dialog
;
if
(
p_interaction
->
p_intf
)
if
(
p_interaction
->
p_intf
)
...
@@ -194,8 +194,6 @@ void intf_InteractionManage( playlist_t *p_playlist )
...
@@ -194,8 +194,6 @@ void intf_InteractionManage( playlist_t *p_playlist )
}
}
break
;
break
;
case
DESTROYED_DIALOG
:
case
DESTROYED_DIALOG
:
msg_Dbg
(
p_interaction
,
"Removing dialog %i"
,
p_dialog
->
i_id
);
// Interface has now destroyed it, remove it
// Interface has now destroyed it, remove it
REMOVE_ELEM
(
p_interaction
->
pp_dialogs
,
p_interaction
->
i_dialogs
,
REMOVE_ELEM
(
p_interaction
->
pp_dialogs
,
p_interaction
->
i_dialogs
,
i_index
);
i_index
);
...
...
src/misc/messages.c
View file @
8eaff121
...
@@ -307,6 +307,13 @@ static void QueueMsg( vlc_object_t *p_this, int i_queue_id, int i_type,
...
@@ -307,6 +307,13 @@ static void QueueMsg( vlc_object_t *p_this, int i_queue_id, int i_type,
#endif
#endif
int
i
;
int
i
;
if
(
p_this
->
i_flags
&
OBJECT_FLAGS_QUIET
||
(
p_this
->
i_flags
&
OBJECT_FLAGS_NODBG
&&
i_type
==
VLC_MSG_DBG
)
)
{
return
;
}
/*
/*
* Convert message to string
* Convert message to string
*/
*/
...
...
src/misc/modules.c
View file @
8eaff121
...
@@ -678,7 +678,7 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
...
@@ -678,7 +678,7 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
if
(
p_module
!=
NULL
)
if
(
p_module
!=
NULL
)
{
{
msg_Dbg
(
p_
module
,
"using %s module
\"
%s
\"
"
,
msg_Dbg
(
p_
this
,
"using %s module
\"
%s
\"
"
,
psz_capability
,
p_module
->
psz_object_name
);
psz_capability
,
p_module
->
psz_object_name
);
}
}
else
if
(
p_first
==
NULL
)
else
if
(
p_first
==
NULL
)
...
@@ -728,7 +728,7 @@ void __module_Unneed( vlc_object_t * p_this, module_t * p_module )
...
@@ -728,7 +728,7 @@ void __module_Unneed( vlc_object_t * p_this, module_t * p_module )
p_module
->
pf_deactivate
(
p_this
);
p_module
->
pf_deactivate
(
p_this
);
}
}
msg_Dbg
(
p_
module
,
"removing module
\"
%s
\"
"
,
p_module
->
psz_object_name
);
msg_Dbg
(
p_
this
,
"removing module
\"
%s
\"
"
,
p_module
->
psz_object_name
);
vlc_object_release
(
p_module
);
vlc_object_release
(
p_module
);
...
...
src/misc/objects.c
View file @
8eaff121
...
@@ -250,6 +250,14 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
...
@@ -250,6 +250,14 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
p_new
->
psz_header
=
NULL
;
p_new
->
psz_header
=
NULL
;
p_new
->
i_flags
=
0
;
if
(
p_this
->
i_flags
&
OBJECT_FLAGS_NODBG
)
p_new
->
i_flags
|=
OBJECT_FLAGS_NODBG
;
if
(
p_this
->
i_flags
&
OBJECT_FLAGS_QUIET
)
p_new
->
i_flags
|=
OBJECT_FLAGS_QUIET
;
if
(
p_this
->
i_flags
&
OBJECT_FLAGS_NOINTERACT
)
p_new
->
i_flags
|=
OBJECT_FLAGS_NOINTERACT
;
p_new
->
i_vars
=
0
;
p_new
->
i_vars
=
0
;
p_new
->
p_vars
=
(
variable_t
*
)
malloc
(
16
*
sizeof
(
variable_t
)
);
p_new
->
p_vars
=
(
variable_t
*
)
malloc
(
16
*
sizeof
(
variable_t
)
);
...
...
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