Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
bf960ee2
Commit
bf960ee2
authored
Nov 25, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/directx: backport of 13382.
parent
8b7dc091
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
modules/video_output/directx/events.c
modules/video_output/directx/events.c
+23
-14
No files found.
modules/video_output/directx/events.c
View file @
bf960ee2
...
...
@@ -295,28 +295,37 @@ void E_(DirectXEventThread)( event_thread_t *p_event )
case
WM_VLC_CHANGE_TEXT
:
var_Get
(
p_event
->
p_vout
,
"video-title"
,
&
val
);
if
(
!
val
.
psz_string
||
!*
val
.
psz_string
)
/* Default video title */
{
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
#ifdef MODULE_NAME_IS_glwin32
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
_T
(
VOUT_TITLE
)
_T
(
" (OpenGL output)"
)
);
val
.
psz_string
=
strdup
(
VOUT_TITLE
" (OpenGL output)"
);
#else
if
(
p_event
->
p_vout
->
p_sys
->
b_using_overlay
)
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
_T
(
VOUT_TITLE
)
_T
(
" (hardware YUV overlay DirectX output)"
)
);
else
if
(
p_event
->
p_vout
->
p_sys
->
b_hw_yuv
)
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
_T
(
VOUT_TITLE
)
_T
(
" (hardware YUV DirectX output)"
)
);
else
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
_T
(
VOUT_TITLE
)
_T
(
" (software RGB DirectX output)"
)
);
if
(
p_event
->
p_vout
->
p_sys
->
b_using_overlay
)
val
.
psz_string
=
strdup
(
VOUT_TITLE
" (hardware YUV overlay DirectX output)"
);
else
if
(
p_event
->
p_vout
->
p_sys
->
b_hw_yuv
)
val
.
psz_string
=
strdup
(
VOUT_TITLE
" (hardware YUV DirectX output)"
);
else
val
.
psz_string
=
strdup
(
VOUT_TITLE
" (software RGB DirectX output)"
);
#endif
}
else
#ifdef UNICODE
{
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
val
.
psz_string
);
wchar_t
*
psz_title
=
malloc
(
strlen
(
val
.
psz_string
)
*
2
+
2
);
mbstowcs
(
psz_title
,
val
.
psz_string
,
strlen
(
val
.
psz_string
)
*
2
);
psz_title
[
strlen
(
val
.
psz_string
)]
=
0
;
free
(
val
.
psz_string
);
val
.
psz_string
=
(
char
*
)
psz_title
;
}
#endif
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hwnd
,
(
LPCTSTR
)
val
.
psz_string
);
if
(
p_event
->
p_vout
->
p_sys
->
hfswnd
)
SetWindowText
(
p_event
->
p_vout
->
p_sys
->
hfswnd
,
(
LPCTSTR
)
val
.
psz_string
);
free
(
val
.
psz_string
);
break
;
default:
...
...
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