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
f083827e
Commit
f083827e
authored
Jan 17, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ALL: make sure newly created playlist_item_t are initialized properly.
parent
83455b12
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
19 deletions
+8
-19
modules/access/slp.c
modules/access/slp.c
+2
-5
modules/control/http.c
modules/control/http.c
+2
-4
modules/gui/beos/VlcWrapper.cpp
modules/gui/beos/VlcWrapper.cpp
+2
-4
src/playlist/item-ext.c
src/playlist/item-ext.c
+2
-6
No files found.
modules/access/slp.c
View file @
f083827e
...
...
@@ -2,7 +2,7 @@
* slp.c: SLP access plugin
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: slp.c,v 1.1
8 2004/01/05 13:07:02 zorglub
Exp $
* $Id: slp.c,v 1.1
9 2004/01/17 12:28:56 gbazin
Exp $
*
* Authors: Loc Minier <lool@videolan.org>
*
...
...
@@ -179,6 +179,7 @@ static SLPBoolean SrvUrlCallback( SLPHandle slph_slp,
/* create a playlist item */
p_playlist_item
=
malloc
(
sizeof
(
playlist_item_t
)
);
memset
(
p_playlist_item
,
0
,
sizeof
(
playlist_item_t
)
);
if
(
p_playlist_item
==
NULL
)
{
msg_Err
(
p_input
,
"out of memory"
);
...
...
@@ -187,13 +188,9 @@ static SLPBoolean SrvUrlCallback( SLPHandle slph_slp,
p_playlist_item
->
psz_name
=
NULL
;
p_playlist_item
->
psz_uri
=
strdup
(
psz_s
);
p_playlist_item
->
i_status
=
0
;
p_playlist_item
->
b_autodeletion
=
VLC_FALSE
;
p_playlist_item
->
i_duration
=
-
1
;
p_playlist_item
->
i_group
=
i_group
;
p_playlist_item
->
b_enabled
=
VLC_TRUE
;
p_playlist_item
->
pp_categories
=
NULL
;
p_playlist_item
->
i_categories
=
NULL
;
/* search the description of the stream */
if
(
SLPOpen
(
config_GetPsz
(
p_input
,
"slp-lang"
),
...
...
modules/control/http.c
View file @
f083827e
...
...
@@ -2,7 +2,7 @@
* http.c : http mini-server ;)
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* $Id: http.c,v 1.4
3 2004/01/10 03:36:03 hartma
n Exp $
* $Id: http.c,v 1.4
4 2004/01/17 12:28:57 gbazi
n Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -2945,12 +2945,10 @@ playlist_item_t * parse_MRL( char *psz )
{
/* now create an item */
p_item
=
malloc
(
sizeof
(
playlist_item_t
)
);
memset
(
p_item
,
0
,
sizeof
(
playlist_item_t
)
);
p_item
->
psz_name
=
mrl
;
p_item
->
psz_uri
=
strdup
(
mrl
);
p_item
->
i_duration
=
-
1
;
p_item
->
i_status
=
0
;
p_item
->
b_autodeletion
=
VLC_FALSE
;
p_item
->
b_enabled
=
VLC_TRUE
;
p_item
->
i_group
=
PLAYLIST_TYPE_MANUAL
;
...
...
modules/gui/beos/VlcWrapper.cpp
View file @
f083827e
...
...
@@ -2,7 +2,7 @@
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.cpp,v 1.4
1 2004/01/05 13:07:03 zorglub
Exp $
* $Id: VlcWrapper.cpp,v 1.4
2 2004/01/17 12:28:57 gbazin
Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -706,11 +706,9 @@ VlcWrapper::PlaylistCloneItem( void* castToItem ) const
if
(
copy
)
{
// make a copy of the item at index
*
copy
=
*
item
;
copy
->
psz_name
=
strdup
(
item
->
psz_name
);
copy
->
psz_uri
=
strdup
(
item
->
psz_uri
);
copy
->
i_type
=
item
->
i_type
;
copy
->
i_status
=
item
->
i_status
;
copy
->
b_autodeletion
=
item
->
b_autodeletion
;
}
}
return
(
void
*
)
copy
;
...
...
src/playlist/item-ext.c
View file @
f083827e
...
...
@@ -2,7 +2,7 @@
* item-ext.c : Exported playlist item functions
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id: item-ext.c,v 1.
8 2004/01/11 00:45:06 zorglub
Exp $
* $Id: item-ext.c,v 1.
9 2004/01/17 12:28:57 gbazin
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Clément Stenac <zorglub@videolan.org>
...
...
@@ -60,6 +60,7 @@ int playlist_AddWDuration( playlist_t *p_playlist, const char * psz_uri,
msg_Err
(
p_playlist
,
"Not adding NULL item"
);
return
-
1
;
}
memset
(
p_item
,
0
,
sizeof
(
playlist_item_t
)
);
p_item
->
psz_uri
=
strdup
(
psz_uri
);
if
(
psz_name
!=
NULL
)
{
...
...
@@ -69,15 +70,10 @@ int playlist_AddWDuration( playlist_t *p_playlist, const char * psz_uri,
{
p_item
->
psz_name
=
strdup
(
psz_uri
);
}
p_item
->
i_status
=
0
;
p_item
->
b_autodeletion
=
VLC_FALSE
;
p_item
->
b_enabled
=
VLC_TRUE
;
p_item
->
i_group
=
PLAYLIST_TYPE_MANUAL
;
p_item
->
i_duration
=
i_duration
;
p_item
->
pp_categories
=
NULL
;
p_item
->
i_categories
=
0
;
playlist_CreateItemCategory
(
p_item
,
_
(
"General"
)
);
playlist_CreateItemCategory
(
p_item
,
_
(
"Options"
)
);
return
playlist_AddItem
(
p_playlist
,
p_item
,
i_mode
,
i_pos
);
...
...
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