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
98eb1db3
Commit
98eb1db3
authored
Jan 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using i_object_type
parent
396ce0f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+12
-10
modules/gui/maemo/maemo.c
modules/gui/maemo/maemo.c
+0
-1
No files found.
modules/codec/mpeg_audio.c
View file @
98eb1db3
...
...
@@ -127,9 +127,9 @@ vlc_module_begin ()
vlc_module_end
()
/*****************************************************************************
* Open
Decoder
: probe the decoder and return score
* Open: probe the decoder and return score
*****************************************************************************/
static
int
Open
Decoder
(
vlc_object_t
*
p_this
)
static
int
Open
(
vlc_object_t
*
p_this
)
{
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_sys_t
*
p_sys
;
...
...
@@ -139,13 +139,6 @@ static int OpenDecoder( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
/* HACK: Don't use this codec if we don't have an mpga audio filter */
if
(
p_dec
->
i_object_type
==
VLC_OBJECT_DECODER
&&
!
module_exists
(
"mpgatofixed32"
)
)
{
return
VLC_EGENERIC
;
}
/* Allocate the memory needed to store the decoder's structure */
if
(
(
p_dec
->
p_sys
=
p_sys
=
(
decoder_sys_t
*
)
malloc
(
sizeof
(
decoder_sys_t
))
)
==
NULL
)
...
...
@@ -175,11 +168,20 @@ static int OpenDecoder( vlc_object_t *p_this )
return
VLC_SUCCESS
;
}
static
int
OpenDecoder
(
vlc_object_t
*
p_this
)
{
/* HACK: Don't use this codec if we don't have an mpga audio filter */
if
(
!
module_exists
(
"mpgatofixed32"
)
)
return
VLC_EGENERIC
;
return
Open
(
p_this
);
}
static
int
OpenPacketizer
(
vlc_object_t
*
p_this
)
{
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
int
i_ret
=
Open
Decoder
(
p_this
);
int
i_ret
=
Open
(
p_this
);
if
(
i_ret
==
VLC_SUCCESS
)
p_dec
->
p_sys
->
b_packetizer
=
true
;
...
...
modules/gui/maemo/maemo.c
View file @
98eb1db3
...
...
@@ -287,7 +287,6 @@ static int OpenWindow (vlc_object_t *obj)
msg_Err
(
obj
,
"Maemo interface not found"
);
return
VLC_EGENERIC
;
/* Maemo not in use */
}
assert
(
intf
->
i_object_type
==
VLC_OBJECT_INTF
);
wnd
->
handle
=
request_video
(
intf
,
wnd
->
vout
);
msg_Dbg
(
intf
,
"Using handle %p"
,
wnd
->
handle
);
...
...
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