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
9c1d2239
Commit
9c1d2239
authored
Jan 26, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed invalid var_DelCallback in teletext code (qt4).
parent
a67d563f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
27 deletions
+25
-27
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+24
-27
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+1
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
9c1d2239
...
...
@@ -76,6 +76,7 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
oldName
=
""
;
artUrl
=
""
;
p_input
=
NULL
;
p_input_vbi
=
NULL
;
i_rate
=
0
;
p_item
=
NULL
;
b_video
=
false
;
...
...
@@ -113,6 +114,7 @@ void InputManager::setInput( input_thread_t *_p_input )
{
p_input
=
NULL
;
p_item
=
NULL
;
assert
(
!
p_input_vbi
);
emit
rateChanged
(
INPUT_RATE_DEFAULT
);
}
}
...
...
@@ -134,6 +136,12 @@ void InputManager::delInput()
timeA
=
0
;
timeB
=
0
;
if
(
p_input_vbi
)
{
vlc_object_release
(
p_input_vbi
);
p_input_vbi
=
NULL
;
}
vlc_object_release
(
p_input
);
p_input
=
NULL
;
...
...
@@ -501,21 +509,22 @@ void InputManager::UpdateTeletext()
int
i_page
=
100
;
bool
b_transparent
=
false
;
vlc_object_t
*
p_vbi
=
(
vlc_object_t
*
)
if
(
p_input_vbi
)
{
var_DelCallback
(
p_input_vbi
,
"vbi-page"
,
VbiEvent
,
this
);
vlc_object_release
(
p_input_vbi
);
}
p_input_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_input
,
"zvbi"
,
FIND_CHILD
);
if
(
p_vbi
)
if
(
p_
input_
vbi
)
{
/* We deleted it (if not here, it does not harm), because
* var_AddCallback will silently add a duplicated one */
var_DelCallback
(
p_vbi
,
"vbi-page"
,
VbiEvent
,
this
);
/* This callback is not remove explicitly, but interfaces
* are guaranted to outlive input */
var_AddCallback
(
p_vbi
,
"vbi-page"
,
VbiEvent
,
this
);
var_AddCallback
(
p_
input_
vbi
,
"vbi-page"
,
VbiEvent
,
this
);
i_page
=
var_GetInteger
(
p_vbi
,
"vbi-page"
);
b_transparent
=
!
var_GetBool
(
p_vbi
,
"vbi-opaque"
);
vlc_object_release
(
p_vbi
);
i_page
=
var_GetInteger
(
p_input_vbi
,
"vbi-page"
);
b_transparent
=
!
var_GetBool
(
p_input_vbi
,
"vbi-opaque"
);
}
emit
newTelexPageSet
(
i_page
);
emit
teletextTransparencyActivated
(
b_transparent
);
...
...
@@ -736,20 +745,14 @@ void InputManager::sectionMenu()
/* Set a new Teletext Page */
void
InputManager
::
telexSetPage
(
int
page
)
{
if
(
hasInput
()
)
if
(
hasInput
()
&&
p_input_vbi
)
{
const
int
i_teletext_es
=
var_GetInteger
(
p_input
,
"teletext-es"
);
if
(
i_teletext_es
>=
0
)
{
vlc_object_t
*
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_input
,
"zvbi"
,
FIND_CHILD
);
if
(
p_vbi
)
{
var_SetInteger
(
p_vbi
,
"vbi-page"
,
page
);
vlc_object_release
(
p_vbi
);
emit
newTelexPageSet
(
page
);
}
var_SetInteger
(
p_input_vbi
,
"vbi-page"
,
page
);
emit
newTelexPageSet
(
page
);
}
}
}
...
...
@@ -757,16 +760,10 @@ void InputManager::telexSetPage( int page )
/* Set the transparency on teletext */
void
InputManager
::
telexSetTransparency
(
bool
b_transparentTelextext
)
{
if
(
hasInput
()
)
if
(
hasInput
()
&&
p_input_vbi
)
{
vlc_object_t
*
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_input
,
"zvbi"
,
FIND_CHILD
);
if
(
p_vbi
)
{
var_SetBool
(
p_vbi
,
"vbi-opaque"
,
!
b_transparentTelextext
);
vlc_object_release
(
p_vbi
);
emit
teletextTransparencyActivated
(
b_transparentTelextext
);
}
var_SetBool
(
p_input_vbi
,
"vbi-opaque"
,
!
b_transparentTelextext
);
emit
teletextTransparencyActivated
(
b_transparentTelextext
);
}
}
...
...
modules/gui/qt4/input_manager.hpp
View file @
9c1d2239
...
...
@@ -137,6 +137,7 @@ public:
private:
intf_thread_t
*
p_intf
;
input_thread_t
*
p_input
;
vlc_object_t
*
p_input_vbi
;
input_item_t
*
p_item
;
int
i_old_playing_status
;
QString
oldName
;
...
...
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