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
4572062f
Commit
4572062f
authored
Jan 18, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Goom: use playlist_CurrentInput instead of vlc_object_find
parent
95759bad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
25 deletions
+20
-25
modules/visualization/goom.c
modules/visualization/goom.c
+20
-25
No files found.
modules/visualization/goom.c
View file @
4572062f
...
...
@@ -408,35 +408,30 @@ static void Close( vlc_object_t *p_this )
static
char
*
TitleGet
(
vlc_object_t
*
p_this
)
{
char
*
psz_title
=
NULL
;
i
nput_thread_t
*
p_input
=
vlc_object_find
(
p_this
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
)
;
playlist_t
*
pl
=
pl_Hold
(
p_this
)
;
i
f
(
!
pl
)
return
NULL
;
if
(
p_input
)
{
psz_title
=
input_item_GetTitle
(
input_GetItem
(
p_input
)
);
input_thread_t
*
p_input
=
playlist_CurrentInput
(
pl
);
pl_Release
(
p_this
);
if
(
!
p_input
)
return
NULL
;
char
*
psz_title
=
input_item_GetTitle
(
input_GetItem
(
p_input
)
);
if
(
EMPTY_STR
(
psz_title
)
)
{
free
(
psz_title
);
char
*
psz_orig
=
input_item_GetURI
(
input_GetItem
(
p_input
)
);
char
*
psz
=
strrchr
(
psz_orig
,
'/'
);
char
*
psz_uri
=
input_item_GetURI
(
input_GetItem
(
p_input
)
);
const
char
*
psz
=
strrchr
(
psz_orig
,
'/'
);
if
(
psz
)
{
psz
++
;
psz_title
=
strdup
(
psz
+
1
);
free
(
psz_uri
);
}
else
{
psz
=
psz_orig
;
}
if
(
psz
&&
*
psz
)
{
psz_title
=
strdup
(
psz
);
}
free
(
psz_orig
);
psz_title
=
psz_uri
;
}
vlc_object_release
(
p_input
);
}
return
psz_title
;
}
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