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
cc4f67fe
Commit
cc4f67fe
authored
May 31, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not access vout_thread_t fields when it can be avoided.
parent
fd584ea3
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
18 deletions
+19
-18
modules/codec/cmml/intf.c
modules/codec/cmml/intf.c
+1
-1
modules/control/hotkeys.c
modules/control/hotkeys.c
+6
-5
modules/control/http/macro.c
modules/control/http/macro.c
+1
-1
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+1
-1
modules/gui/skins2/commands/cmd_fullscreen.cpp
modules/gui/skins2/commands/cmd_fullscreen.cpp
+1
-1
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+1
-1
modules/misc/lua/libs/osd.c
modules/misc/lua/libs/osd.c
+2
-2
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_audio_video.c
+1
-1
src/input/decoder.c
src/input/decoder.c
+4
-4
src/input/resource.c
src/input/resource.c
+1
-1
No files found.
modules/codec/cmml/intf.c
View file @
cc4f67fe
...
@@ -157,7 +157,7 @@ void CloseIntf ( decoder_sys_t *p_intf )
...
@@ -157,7 +157,7 @@ void CloseIntf ( decoder_sys_t *p_intf )
if
(
p_vout
)
if
(
p_vout
)
{
{
/* enable CMML as a subtitle track */
/* enable CMML as a subtitle track */
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_CLEAR
,
DEFAULT_CHAN
);
spu_Control
(
vout_GetSpu
(
p_vout
)
,
SPU_CHANNEL_CLEAR
,
DEFAULT_CHAN
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
}
}
...
...
modules/control/hotkeys.c
View file @
cc4f67fe
...
@@ -197,7 +197,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -197,7 +197,7 @@ static void Run( intf_thread_t *p_intf )
int
i
;
int
i
;
for
(
i
=
0
;
i
<
CHANNELS_NUMBER
;
i
++
)
for
(
i
=
0
;
i
<
CHANNELS_NUMBER
;
i
++
)
{
{
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_REGISTER
,
spu_Control
(
vout_GetSpu
(
p_vout
)
,
SPU_CHANNEL_REGISTER
,
&
p_intf
->
p_sys
->
p_channels
[
i
]
);
&
p_intf
->
p_sys
->
p_channels
[
i
]
);
}
}
}
}
...
@@ -1068,7 +1068,7 @@ static void DisplayPosition( intf_thread_t *p_intf, vout_thread_t *p_vout,
...
@@ -1068,7 +1068,7 @@ static void DisplayPosition( intf_thread_t *p_intf, vout_thread_t *p_vout,
vout_OSDMessage
(
p_input
,
POSITION_TEXT_CHAN
,
"%s"
,
psz_time
);
vout_OSDMessage
(
p_input
,
POSITION_TEXT_CHAN
,
"%s"
,
psz_time
);
}
}
if
(
p_vout
->
b_fullscreen
)
if
(
var_GetBool
(
p_vout
,
"fullscreen"
)
)
{
{
var_Get
(
p_input
,
"position"
,
&
pos
);
var_Get
(
p_input
,
"position"
,
&
pos
);
vout_OSDSlider
(
VLC_OBJECT
(
p_input
),
POSITION_WIDGET_CHAN
,
vout_OSDSlider
(
VLC_OBJECT
(
p_input
),
POSITION_WIDGET_CHAN
,
...
@@ -1085,7 +1085,7 @@ static void DisplayVolume( intf_thread_t *p_intf, vout_thread_t *p_vout,
...
@@ -1085,7 +1085,7 @@ static void DisplayVolume( intf_thread_t *p_intf, vout_thread_t *p_vout,
}
}
ClearChannels
(
p_intf
,
p_vout
);
ClearChannels
(
p_intf
,
p_vout
);
if
(
p_vout
->
b_fullscreen
)
if
(
var_GetBool
(
p_vout
,
"fullscreen"
)
)
{
{
vout_OSDSlider
(
VLC_OBJECT
(
p_vout
),
VOLUME_WIDGET_CHAN
,
vout_OSDSlider
(
VLC_OBJECT
(
p_vout
),
VOLUME_WIDGET_CHAN
,
i_vol
*
100
/
AOUT_VOLUME_MAX
,
OSD_VERT_SLIDER
);
i_vol
*
100
/
AOUT_VOLUME_MAX
,
OSD_VERT_SLIDER
);
...
@@ -1103,10 +1103,11 @@ static void ClearChannels( intf_thread_t *p_intf, vout_thread_t *p_vout )
...
@@ -1103,10 +1103,11 @@ static void ClearChannels( intf_thread_t *p_intf, vout_thread_t *p_vout )
if
(
p_vout
)
if
(
p_vout
)
{
{
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_CLEAR
,
DEFAULT_CHAN
);
spu_t
*
p_spu
=
vout_GetSpu
(
p_vout
);
spu_Control
(
p_spu
,
SPU_CHANNEL_CLEAR
,
DEFAULT_CHAN
);
for
(
i
=
0
;
i
<
CHANNELS_NUMBER
;
i
++
)
for
(
i
=
0
;
i
<
CHANNELS_NUMBER
;
i
++
)
{
{
spu_Control
(
p_
vout
->
p_
spu
,
SPU_CHANNEL_CLEAR
,
spu_Control
(
p_spu
,
SPU_CHANNEL_CLEAR
,
p_intf
->
p_sys
->
p_channels
[
i
]
);
p_intf
->
p_sys
->
p_channels
[
i
]
);
}
}
}
}
...
...
modules/control/http/macro.c
View file @
cc4f67fe
...
@@ -235,7 +235,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
...
@@ -235,7 +235,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
p_vout
=
input_GetVout
(
p_sys
->
p_input
);
p_vout
=
input_GetVout
(
p_sys
->
p_input
);
if
(
p_vout
)
if
(
p_vout
)
{
{
p_vout
->
i_changes
|=
VOUT_FULLSCREEN_CHANGE
;
var_SetBool
(
p_vout
,
"fullscreen"
,
!
var_GetBool
(
p_vout
,
"fullscreen"
)
)
;
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
msg_Dbg
(
p_intf
,
"requested fullscreen toggle"
);
msg_Dbg
(
p_intf
,
"requested fullscreen toggle"
);
}
}
...
...
modules/gui/qt4/components/extended_panels.cpp
View file @
cc4f67fe
...
@@ -347,7 +347,7 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add )
...
@@ -347,7 +347,7 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add )
if
(
p_vout
)
if
(
p_vout
)
{
{
if
(
!
strcmp
(
psz_filter_type
,
"sub-filter"
)
)
if
(
!
strcmp
(
psz_filter_type
,
"sub-filter"
)
)
var_SetString
(
p_vout
->
p_spu
,
psz_filter_type
,
psz_string
);
var_SetString
(
vout_GetSpu
(
p_vout
)
,
psz_filter_type
,
psz_string
);
else
else
var_SetString
(
p_vout
,
psz_filter_type
,
psz_string
);
var_SetString
(
p_vout
,
psz_filter_type
,
psz_string
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
...
...
modules/gui/skins2/commands/cmd_fullscreen.cpp
View file @
cc4f67fe
...
@@ -37,7 +37,7 @@ void CmdFullscreen::execute()
...
@@ -37,7 +37,7 @@ void CmdFullscreen::execute()
if
(
pVout
)
if
(
pVout
)
{
{
// Switch to fullscreen
// Switch to fullscreen
pVout
->
i_changes
|=
VOUT_FULLSCREEN_CHANGE
;
var_SetBool
(
pVout
,
"fullscreen"
,
!
var_GetBool
(
pVout
,
"fullscreen"
)
)
;
vlc_object_release
(
pVout
);
vlc_object_release
(
pVout
);
}
}
}
}
modules/gui/skins2/src/vlcproc.cpp
View file @
cc4f67fe
...
@@ -344,7 +344,7 @@ void VlcProc::refreshInput()
...
@@ -344,7 +344,7 @@ void VlcProc::refreshInput()
pVarHasVout
->
set
(
pVout
!=
NULL
);
pVarHasVout
->
set
(
pVout
!=
NULL
);
if
(
pVout
)
if
(
pVout
)
{
{
pVarFullscreen
->
set
(
pVout
->
b_fullscreen
);
pVarFullscreen
->
set
(
var_GetBool
(
pVout
,
"fullscreen"
)
);
vlc_object_release
(
pVout
);
vlc_object_release
(
pVout
);
}
}
...
...
modules/misc/lua/libs/osd.c
View file @
cc4f67fe
...
@@ -134,7 +134,7 @@ static int vlclua_spu_channel_register( lua_State *L )
...
@@ -134,7 +134,7 @@ static int vlclua_spu_channel_register( lua_State *L )
if
(
!
p_vout
)
if
(
!
p_vout
)
return
luaL_error
(
L
,
"Unable to find vout."
);
return
luaL_error
(
L
,
"Unable to find vout."
);
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_REGISTER
,
&
i_chan
);
spu_Control
(
vout_GetSpu
(
p_vout
)
,
SPU_CHANNEL_REGISTER
,
&
i_chan
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
lua_pushinteger
(
L
,
i_chan
);
lua_pushinteger
(
L
,
i_chan
);
return
1
;
return
1
;
...
@@ -149,7 +149,7 @@ static int vlclua_spu_channel_clear( lua_State *L )
...
@@ -149,7 +149,7 @@ static int vlclua_spu_channel_clear( lua_State *L )
if
(
!
p_vout
)
if
(
!
p_vout
)
return
luaL_error
(
L
,
"Unable to find vout."
);
return
luaL_error
(
L
,
"Unable to find vout."
);
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_CLEAR
,
i_chan
);
spu_Control
(
vout_GetSpu
(
p_vout
)
,
SPU_CHANNEL_CLEAR
,
i_chan
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
return
0
;
return
0
;
}
}
...
...
src/control/mediacontrol_audio_video.c
View file @
cc4f67fe
...
@@ -118,7 +118,7 @@ int mediacontrol_showtext( vout_thread_t *p_vout, int i_channel,
...
@@ -118,7 +118,7 @@ int mediacontrol_showtext( vout_thread_t *p_vout, int i_channel,
int
i_flags
,
int
i_hmargin
,
int
i_vmargin
,
int
i_flags
,
int
i_hmargin
,
int
i_vmargin
,
mtime_t
i_start
,
mtime_t
i_stop
)
mtime_t
i_start
,
mtime_t
i_stop
)
{
{
return
osd_ShowTextAbsolute
(
p_vout
->
p_spu
,
i_channel
,
return
osd_ShowTextAbsolute
(
vout_GetSpu
(
p_vout
)
,
i_channel
,
psz_string
,
p_style
,
psz_string
,
p_style
,
i_flags
,
i_hmargin
,
i_vmargin
,
i_flags
,
i_hmargin
,
i_vmargin
,
i_start
,
i_stop
);
i_start
,
i_stop
);
...
...
src/input/decoder.c
View file @
cc4f67fe
...
@@ -1536,7 +1536,7 @@ static void DecoderPlaySpu( decoder_t *p_dec, subpicture_t *p_subpic,
...
@@ -1536,7 +1536,7 @@ static void DecoderPlaySpu( decoder_t *p_dec, subpicture_t *p_subpic,
vlc_mutex_unlock
(
&
p_owner
->
lock
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
if
(
!
b_reject
)
if
(
!
b_reject
)
spu_DisplaySubpicture
(
p_vout
->
p_spu
,
p_subpic
);
spu_DisplaySubpicture
(
vout_GetSpu
(
p_vout
)
,
p_subpic
);
else
else
subpicture_Delete
(
p_subpic
);
subpicture_Delete
(
p_subpic
);
...
@@ -1877,7 +1877,7 @@ static void DecoderProcessSpu( decoder_t *p_dec, block_t *p_block, bool b_flush
...
@@ -1877,7 +1877,7 @@ static void DecoderProcessSpu( decoder_t *p_dec, block_t *p_block, bool b_flush
p_vout
=
input_resource_HoldVout
(
p_input
->
p
->
p_resource
);
p_vout
=
input_resource_HoldVout
(
p_input
->
p
->
p_resource
);
if
(
p_vout
&&
p_owner
->
p_spu_vout
==
p_vout
)
if
(
p_vout
&&
p_owner
->
p_spu_vout
==
p_vout
)
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_CLEAR
,
spu_Control
(
vout_GetSpu
(
p_vout
)
,
SPU_CHANNEL_CLEAR
,
p_owner
->
i_spu_channel
);
p_owner
->
i_spu_channel
);
if
(
p_vout
)
if
(
p_vout
)
...
@@ -2042,7 +2042,7 @@ static void DeleteDecoder( decoder_t * p_dec )
...
@@ -2042,7 +2042,7 @@ static void DeleteDecoder( decoder_t * p_dec )
if
(
p_vout
)
if
(
p_vout
)
{
{
if
(
p_owner
->
p_spu_vout
==
p_vout
)
if
(
p_owner
->
p_spu_vout
==
p_vout
)
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_CLEAR
,
p_owner
->
i_spu_channel
);
spu_Control
(
vout_GetSpu
(
p_vout
)
,
SPU_CHANNEL_CLEAR
,
p_owner
->
i_spu_channel
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
}
}
}
}
...
@@ -2390,7 +2390,7 @@ static subpicture_t *spu_new_buffer( decoder_t *p_dec )
...
@@ -2390,7 +2390,7 @@ static subpicture_t *spu_new_buffer( decoder_t *p_dec )
vlc_mutex_unlock
(
&
p_owner
->
lock
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_REGISTER
,
spu_Control
(
vout_GetSpu
(
p_vout
)
,
SPU_CHANNEL_REGISTER
,
&
p_owner
->
i_spu_channel
);
&
p_owner
->
i_spu_channel
);
p_owner
->
i_spu_order
=
0
;
p_owner
->
i_spu_order
=
0
;
p_owner
->
p_spu_vout
=
p_vout
;
p_owner
->
p_spu_vout
=
p_vout
;
...
...
src/input/resource.c
View file @
cc4f67fe
...
@@ -262,7 +262,7 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
...
@@ -262,7 +262,7 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
{
{
msg_Dbg
(
p_resource
->
p_input
,
"saving a free vout"
);
msg_Dbg
(
p_resource
->
p_input
,
"saving a free vout"
);
vout_Flush
(
p_vout
,
1
);
vout_Flush
(
p_vout
,
1
);
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_CLEAR
,
-
1
);
spu_Control
(
vout_GetSpu
(
p_vout
)
,
SPU_CHANNEL_CLEAR
,
-
1
);
p_resource
->
p_vout_free
=
p_vout
;
p_resource
->
p_vout_free
=
p_vout
;
}
}
...
...
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