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
Hide 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 )
...
@@ -408,35 +408,30 @@ static void Close( vlc_object_t *p_this )
static
char
*
TitleGet
(
vlc_object_t
*
p_this
)
static
char
*
TitleGet
(
vlc_object_t
*
p_this
)
{
{
char
*
psz_title
=
NULL
;
playlist_t
*
pl
=
pl_Hold
(
p_this
)
;
i
nput_thread_t
*
p_input
=
i
f
(
!
pl
)
vlc_object_find
(
p_this
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
)
;
return
NULL
;
if
(
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
)
)
{
{
psz_title
=
input_item_GetTitle
(
input_GetItem
(
p_input
)
);
free
(
psz_title
);
if
(
EMPTY_STR
(
psz_title
)
)
char
*
psz_uri
=
input_item_GetURI
(
input_GetItem
(
p_input
)
);
const
char
*
psz
=
strrchr
(
psz_orig
,
'/'
);
if
(
psz
)
{
{
free
(
psz_title
);
psz_title
=
strdup
(
psz
+
1
);
char
*
psz_orig
=
input_item_GetURI
(
input_GetItem
(
p_input
)
);
free
(
psz_uri
);
char
*
psz
=
strrchr
(
psz_orig
,
'/'
);
if
(
psz
)
{
psz
++
;
}
else
{
psz
=
psz_orig
;
}
if
(
psz
&&
*
psz
)
{
psz_title
=
strdup
(
psz
);
}
free
(
psz_orig
);
}
}
vlc_object_release
(
p_input
);
else
psz_title
=
psz_uri
;
}
}
vlc_object_release
(
p_input
);
return
psz_title
;
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