Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
54771268
Commit
54771268
authored
Dec 29, 2001
by
Loïc Minier
Browse files
Small bugfix of a segfault. The playlist segfaulted with the urls
containing no '/'.
parent
14cf5695
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
1
8
:3
3
:0
7 sam
Exp $
* $Id: gtk_playlist.c,v 1.2
3
2001/12/
29
1
1
:3
6
:0
0 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
Supports
Markdown
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