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
d7e22156
Commit
d7e22156
authored
Nov 29, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/menus.cpp: moved audio/video track menu to the top.
parent
bc3c81e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
31 deletions
+27
-31
modules/gui/wxwindows/menus.cpp
modules/gui/wxwindows/menus.cpp
+27
-31
No files found.
modules/gui/wxwindows/menus.cpp
View file @
d7e22156
...
...
@@ -2,7 +2,7 @@
* menus.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: menus.cpp,v 1.2
7 2003/11/29 13:39:43
gbazin Exp $
* $Id: menus.cpp,v 1.2
8 2003/11/29 16:36:56
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -234,7 +234,7 @@ wxMenu *AudioMenu( intf_thread_t *_p_intf, wxWindow *p_parent )
{
#define MAX_AUDIO_ITEMS 10
vlc_object_t
*
p_object
1
,
*
p_object2
;
vlc_object_t
*
p_object
;
char
*
ppsz_varnames
[
MAX_AUDIO_ITEMS
];
int
pi_objects
[
MAX_AUDIO_ITEMS
];
int
i
=
0
;
...
...
@@ -242,30 +242,26 @@ wxMenu *AudioMenu( intf_thread_t *_p_intf, wxWindow *p_parent )
/* Initializations */
memset
(
pi_objects
,
0
,
MAX_AUDIO_ITEMS
*
sizeof
(
int
)
);
p_object1
=
(
vlc_object_t
*
)
vlc_object_find
(
_p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
if
(
p_object1
!=
NULL
)
{
ppsz_varnames
[
i
]
=
"audio-device"
;
pi_objects
[
i
++
]
=
p_object1
->
i_object_id
;
ppsz_varnames
[
i
]
=
"audio-channels"
;
pi_objects
[
i
++
]
=
p_object1
->
i_object_id
;
}
p_object2
=
(
vlc_object_t
*
)
vlc_object_find
(
_p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
p_object2
!=
NULL
)
p_object
=
(
vlc_object_t
*
)
vlc_object_find
(
_p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
p_object
!=
NULL
)
{
ppsz_varnames
[
i
]
=
"audio-es"
;
pi_objects
[
i
++
]
=
p_object
2
->
i_object_id
;
vlc_object_release
(
p_object
2
);
pi_objects
[
i
++
]
=
p_object
->
i_object_id
;
vlc_object_release
(
p_object
);
}
if
(
p_object1
!=
NULL
)
p_object
=
(
vlc_object_t
*
)
vlc_object_find
(
_p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
if
(
p_object
!=
NULL
)
{
ppsz_varnames
[
i
]
=
"audio-device"
;
pi_objects
[
i
++
]
=
p_object
->
i_object_id
;
ppsz_varnames
[
i
]
=
"audio-channels"
;
pi_objects
[
i
++
]
=
p_object
->
i_object_id
;
ppsz_varnames
[
i
]
=
"visual"
;
pi_objects
[
i
++
]
=
p_object
1
->
i_object_id
;
vlc_object_release
(
p_object
1
);
pi_objects
[
i
++
]
=
p_object
->
i_object_id
;
vlc_object_release
(
p_object
);
}
/* Build menu */
...
...
@@ -285,6 +281,17 @@ wxMenu *VideoMenu( intf_thread_t *_p_intf, wxWindow *p_parent )
/* Initializations */
memset
(
pi_objects
,
0
,
MAX_VIDEO_ITEMS
*
sizeof
(
int
)
);
p_object
=
(
vlc_object_t
*
)
vlc_object_find
(
_p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
p_object
!=
NULL
)
{
ppsz_varnames
[
i
]
=
"video-es"
;
pi_objects
[
i
++
]
=
p_object
->
i_object_id
;
ppsz_varnames
[
i
]
=
"spu-es"
;
pi_objects
[
i
++
]
=
p_object
->
i_object_id
;
vlc_object_release
(
p_object
);
}
p_object
=
(
vlc_object_t
*
)
vlc_object_find
(
_p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_object
!=
NULL
)
...
...
@@ -319,17 +326,6 @@ wxMenu *VideoMenu( intf_thread_t *_p_intf, wxWindow *p_parent )
vlc_object_release
(
p_object
);
}
p_object
=
(
vlc_object_t
*
)
vlc_object_find
(
_p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
p_object
!=
NULL
)
{
ppsz_varnames
[
i
]
=
"video-es"
;
pi_objects
[
i
++
]
=
p_object
->
i_object_id
;
ppsz_varnames
[
i
]
=
"spu-es"
;
pi_objects
[
i
++
]
=
p_object
->
i_object_id
;
vlc_object_release
(
p_object
);
}
/* Build menu */
return
new
Menu
(
_p_intf
,
p_parent
,
i
,
ppsz_varnames
,
pi_objects
,
VideoMenu_Events
);
...
...
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