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
89e32e31
Commit
89e32e31
authored
Jan 29, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabled changing filters on the fly
parent
008accd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
9 deletions
+53
-9
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+14
-3
modules/gui/beos/VlcWrapper.cpp
modules/gui/beos/VlcWrapper.cpp
+36
-4
modules/gui/beos/VlcWrapper.h
modules/gui/beos/VlcWrapper.h
+3
-2
No files found.
modules/gui/beos/PreferencesWindow.cpp
View file @
89e32e31
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* PreferencesWindow.cpp: beos interface
* PreferencesWindow.cpp: beos interface
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.cpp,v 1.1
1 2003/01/28 10:05:15
titer Exp $
* $Id: PreferencesWindow.cpp,v 1.1
2 2003/01/29 00:02:09
titer Exp $
*
*
* Authors: Eric Petit <titer@videolan.org>
* Authors: Eric Petit <titer@videolan.org>
*
*
...
@@ -229,6 +229,8 @@ void PreferencesWindow::SetDefaults()
...
@@ -229,6 +229,8 @@ void PreferencesWindow::SetDefaults()
*****************************************************************************/
*****************************************************************************/
void
PreferencesWindow
::
ApplyChanges
()
void
PreferencesWindow
::
ApplyChanges
()
{
{
VlcWrapper
*
p_wrapper
=
p_intf
->
p_sys
->
p_wrapper
;
if
(
fDvdMenusCheck
->
Value
()
)
if
(
fDvdMenusCheck
->
Value
()
)
p_intf
->
p_sys
->
b_dvdmenus
=
true
;
p_intf
->
p_sys
->
b_dvdmenus
=
true
;
else
else
...
@@ -248,10 +250,19 @@ void PreferencesWindow::ApplyChanges()
...
@@ -248,10 +250,19 @@ void PreferencesWindow::ApplyChanges()
config_GetInt
(
p_intf
,
"hue"
)
!=
0
||
config_GetInt
(
p_intf
,
"hue"
)
!=
0
||
config_GetFloat
(
p_intf
,
"saturation"
)
!=
1
)
config_GetFloat
(
p_intf
,
"saturation"
)
!=
1
)
{
{
config_PutPsz
(
p_intf
,
"filter"
,
"adjust"
);
if
(
!
config_GetPsz
(
p_intf
,
"filter"
)
||
strcmp
(
config_GetPsz
(
p_intf
,
"filter"
),
"adjust"
)
)
{
config_PutPsz
(
p_intf
,
"filter"
,
"adjust"
);
p_wrapper
->
FilterChange
();
}
}
}
else
else
{
{
config_PutPsz
(
p_intf
,
"filter"
,
NULL
);
if
(
config_GetPsz
(
p_intf
,
"filter"
)
)
{
config_PutPsz
(
p_intf
,
"filter"
,
NULL
);
p_wrapper
->
FilterChange
();
}
}
}
}
}
modules/gui/beos/VlcWrapper.cpp
View file @
89e32e31
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.cpp,v 1.2
2 2003/01/27 10:29:22
titer Exp $
* $Id: VlcWrapper.cpp,v 1.2
3 2003/01/29 00:02:09
titer Exp $
*
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
@@ -30,9 +30,11 @@
...
@@ -30,9 +30,11 @@
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <vlc/intf.h>
#include <vlc/intf.h>
extern
"C"
{
#include <vlc/vout.h>
#include <audio_output.h>
extern
"C"
#include <aout_internal.h>
{
#include <audio_output.h>
#include <aout_internal.h>
}
}
#include "VlcWrapper.h"
#include "VlcWrapper.h"
...
@@ -855,3 +857,33 @@ void VlcWrapper::LoadSubFile( char * psz_file )
...
@@ -855,3 +857,33 @@ void VlcWrapper::LoadSubFile( char * psz_file )
{
{
config_PutPsz
(
p_intf
,
"sub-file"
,
strdup
(
psz_file
)
);
config_PutPsz
(
p_intf
,
"sub-file"
,
strdup
(
psz_file
)
);
}
}
void
VlcWrapper
::
FilterChange
()
{
if
(
!
p_input
)
return
;
vout_thread_t
*
p_vout
;
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
/* Warn the vout we are about to change the filter chain */
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
)
{
p_vout
->
b_filter_change
=
VLC_TRUE
;
vlc_object_release
(
p_vout
);
}
/* restart all video stream */
for
(
unsigned
int
i
=
0
;
i
<
p_input
->
stream
.
i_es_number
;
i
++
)
{
if
(
(
p_input
->
stream
.
pp_es
[
i
]
->
i_cat
==
VIDEO_ES
)
&&
(
p_input
->
stream
.
pp_es
[
i
]
->
p_decoder_fifo
!=
NULL
)
)
{
input_UnselectES
(
p_input
,
p_input
->
stream
.
pp_es
[
i
]
);
input_SelectES
(
p_input
,
p_input
->
stream
.
pp_es
[
i
]
);
}
}
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
}
modules/gui/beos/VlcWrapper.h
View file @
89e32e31
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
* VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.h,v 1.1
7 2003/01/27 10:29:22
titer Exp $
* $Id: VlcWrapper.h,v 1.1
8 2003/01/29 00:02:09
titer Exp $
*
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
@@ -123,7 +123,8 @@ public:
...
@@ -123,7 +123,8 @@ public:
void
ChapterInfo
(
int32
&
currentIndex
,
int32
&
maxIndex
);
void
ChapterInfo
(
int32
&
currentIndex
,
int32
&
maxIndex
);
/* Miscellanous */
/* Miscellanous */
void
LoadSubFile
(
char
*
psz_file
);
void
LoadSubFile
(
char
*
psz_file
);
void
FilterChange
();
private:
private:
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
...
...
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