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
d5eeda89
Commit
d5eeda89
authored
Jul 23, 2002
by
Tony Castley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed code for subtitle and audio selection, still probs but looking.
Implemented muting
parent
2a2cf8b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
26 deletions
+18
-26
plugins/beos/InterfaceWindow.cpp
plugins/beos/InterfaceWindow.cpp
+3
-8
plugins/beos/intf_vlc_wrapper.cpp
plugins/beos/intf_vlc_wrapper.cpp
+13
-16
plugins/beos/intf_vlc_wrapper.h
plugins/beos/intf_vlc_wrapper.h
+2
-2
No files found.
plugins/beos/InterfaceWindow.cpp
View file @
d5eeda89
...
...
@@ -2,7 +2,7 @@
* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.cpp,v 1.2
1 2002/07/23 12:42:17
tcastley Exp $
* $Id: InterfaceWindow.cpp,v 1.2
2 2002/07/23 13:16:51
tcastley Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -275,8 +275,7 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
case
VOLUME_MUTE
:
/* toggle muting */
b_mute
!=
b_mute
;
p_vlc_wrapper
->
volumeMute
(
b_mute
);
p_vlc_wrapper
->
toggleMute
(
);
break
;
case
SELECT_AUDIO
:
...
...
@@ -567,14 +566,10 @@ int LanguageMenu::GetChannels()
if
(
kind
==
p_intf
->
p_sys
->
p_input
->
stream
.
pp_es
[
i
]
->
i_cat
)
{
psz_name
=
p_intf
->
p_sys
->
p_input
->
stream
.
pp_es
[
i
]
->
psz_desc
;
if
(
strlen
(
psz_name
)
==
0
)
{
// change to default etc
}
if
(
kind
==
AUDIO_ES
)
//audio
{
msg
=
new
BMessage
(
SELECT_AUDIO
);
msg
->
AddInt32
(
"
channel
"
,
i
);
msg
->
AddInt32
(
"
audio
"
,
i
);
}
else
{
...
...
plugins/beos/intf_vlc_wrapper.cpp
View file @
d5eeda89
...
...
@@ -2,7 +2,7 @@
* intf_vlc_wrapper.h: BeOS plugin for vlc (derived from MacOS X port )
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: intf_vlc_wrapper.cpp,v 1.
2 2002/07/23 12:42:17
tcastley Exp $
* $Id: intf_vlc_wrapper.cpp,v 1.
3 2002/07/23 13:16:51
tcastley Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -140,7 +140,7 @@ bool Intf_VLCWrapper::playlistPlay()
void
Intf_VLCWrapper
::
playlistPause
()
{
volumeMute
(
true
);
toggleMute
(
);
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
...
...
@@ -208,11 +208,11 @@ void Intf_VLCWrapper::playSlower()
}
if
(
p_intf
->
p_sys
->
p_input
->
stream
.
control
.
i_rate
==
DEFAULT_RATE
)
{
volumeMute
(
false
);
toggleMute
(
);
}
else
{
volumeMute
(
true
);
toggleMute
(
);
}
}
...
...
@@ -224,11 +224,11 @@ void Intf_VLCWrapper::playFaster()
}
if
(
p_intf
->
p_sys
->
p_input
->
stream
.
control
.
i_rate
==
DEFAULT_RATE
)
{
volumeMute
(
false
);
toggleMute
(
);
}
else
{
volumeMute
(
true
);
toggleMute
(
);
}
}
...
...
@@ -279,6 +279,7 @@ void Intf_VLCWrapper::toggleLanguage(int i_language)
}
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
msg_Info
(
p_intf
,
"Old: %d, New: %d"
,
i_old
,
i_language
);
if
(
i_language
!=
-
1
)
{
input_ToggleES
(
p_intf
->
p_sys
->
p_input
,
...
...
@@ -286,7 +287,7 @@ void Intf_VLCWrapper::toggleLanguage(int i_language)
VLC_TRUE
);
}
if
(
i_old
!=
-
1
)
if
(
(
i_old
!=
-
1
)
&&
(
i_old
!=
i_language
)
)
{
input_ToggleES
(
p_intf
->
p_sys
->
p_input
,
p_intf
->
p_sys
->
p_input
->
stream
.
pp_selected_es
[
i_old
],
...
...
@@ -309,7 +310,8 @@ void Intf_VLCWrapper::toggleSubtitle(int i_subtitle)
}
}
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
msg_Info
(
p_intf
,
"Old: %d, New: %d"
,
i_old
,
i_subtitle
);
if
(
i_subtitle
!=
-
1
)
{
input_ToggleES
(
p_intf
->
p_sys
->
p_input
,
...
...
@@ -317,7 +319,7 @@ void Intf_VLCWrapper::toggleSubtitle(int i_subtitle)
VLC_TRUE
);
}
if
(
i_old
!=
-
1
)
if
(
(
i_old
!=
-
1
)
&&
(
i_old
!=
i_subtitle
)
)
{
input_ToggleES
(
p_intf
->
p_sys
->
p_input
,
p_intf
->
p_sys
->
p_input
->
stream
.
pp_selected_es
[
i_old
],
...
...
@@ -448,14 +450,9 @@ void Intf_VLCWrapper::openNetHTTP(BString o_addr)
{
}
void
Intf_VLCWrapper
::
volumeMute
(
bool
mute
)
void
Intf_VLCWrapper
::
toggleMute
(
)
{
if
(
mute
)
{
}
else
{
}
input_ToggleMute
(
p_intf
->
p_sys
->
p_input
);
}
/* menus management */
...
...
plugins/beos/intf_vlc_wrapper.h
View file @
d5eeda89
...
...
@@ -2,7 +2,7 @@
* intf_vlc_wrapper.h: BeOS plugin for vlc (derived from MacOS X port )
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: intf_vlc_wrapper.h,v 1.
2 2002/07/23 12:42:17
tcastley Exp $
* $Id: intf_vlc_wrapper.h,v 1.
3 2002/07/23 13:16:51
tcastley Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -108,7 +108,7 @@ public:
void
openNetHTTP
(
BString
o_addr
);
/* audio stuff */
void
volumeMute
(
bool
mute
);
void
toggleMute
(
);
/* menus management */
void
setupMenus
();
...
...
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