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
54771268
Commit
54771268
authored
Dec 29, 2001
by
Loïc Minier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small bugfix of a segfault. The playlist segfaulted with the urls
containing no '/'.
parent
14cf5695
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
plugins/gtk/gtk_playlist.c
plugins/gtk/gtk_playlist.c
+13
-4
No files found.
plugins/gtk/gtk_playlist.c
View file @
54771268
...
...
@@ -2,7 +2,7 @@
* gtk_playlist.c : Interface for the playlist dialog
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: gtk_playlist.c,v 1.2
2 2001/12/07 18:33:07 sam
Exp $
* $Id: gtk_playlist.c,v 1.2
3 2001/12/29 11:36:00 lool
Exp $
*
* Authors: Pierre Baillet <oct@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
...
...
@@ -708,10 +708,19 @@ void GtkRebuildCList( GtkCList * p_clist, playlist_t * p_playlist )
#ifdef WIN32
/* WIN32 HACK */
ppsz_text
[
0
]
=
g_strdup
(
""
);
#else
ppsz_text
[
0
]
=
g_strdup
(
rindex
(
(
char
*
)(
p_playlist
->
p_item
[
p_playlist
->
i_size
-
1
-
i_dummy
].
psz_name
),
'/'
)
+
1
);
ppsz_text
[
0
]
=
rindex
(
(
char
*
)(
p_playlist
->
p_item
[
p_playlist
->
i_size
-
1
-
i_dummy
].
psz_name
),
'/'
);
if
(
ppsz_text
[
0
]
==
NULL
)
{
ppsz_text
[
0
]
=
g_strdup
(
(
char
*
)(
p_playlist
->
p_item
[
p_playlist
->
i_size
-
1
-
i_dummy
].
psz_name
));
}
else
{
ppsz_text
[
0
]
=
g_strdup
(
ppsz_text
[
0
]
+
1
);
}
#endif
ppsz_text
[
1
]
=
g_strdup
(
"no info"
);
ppsz_text
[
1
]
=
g_strdup
(
"no info"
);
gtk_clist_insert
(
p_clist
,
0
,
ppsz_text
);
...
...
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