Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
28257ce4
Commit
28257ce4
authored
Mar 29, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input and playlist: use custom object
parent
250dcb47
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
src/input/input.c
src/input/input.c
+7
-4
src/misc/objects.c
src/misc/objects.c
+0
-9
src/playlist/engine.c
src/playlist/engine.c
+3
-1
No files found.
src/input/input.c
View file @
28257ce4
...
...
@@ -43,7 +43,6 @@
#include <vlc_playlist.h>
#include <vlc_interface.h>
#include <vlc_url.h>
#include <vlc_demux.h>
#include <vlc_charset.h>
#ifdef HAVE_SYS_STAT_H
...
...
@@ -113,7 +112,8 @@ static void AppendAttachment( int *pi_attachment, input_attachment_t ***ppp_atta
* * Get only:
* - length
* - bookmarks
* - seekable (if you can seek, it doesn't say if 'bar display' has be shown or not, for that check position != 0.0)
* - seekable (if you can seek, it doesn't say if 'bar display' has be shown
* or not, for that check position != 0.0)
* - can-pause
* * For intf callback upon changes
* - intf-change
...
...
@@ -122,14 +122,17 @@ static void AppendAttachment( int *pi_attachment, input_attachment_t ***ppp_atta
* TODO complete this list (?)
*****************************************************************************/
static
input_thread_t
*
Create
(
vlc_object_t
*
p_parent
,
input_item_t
*
p_item
,
const
char
*
psz_header
,
vlc_bool_t
b_quick
,
sout_instance_t
*
p_sout
)
const
char
*
psz_header
,
vlc_bool_t
b_quick
,
sout_instance_t
*
p_sout
)
{
static
const
char
input_name
[]
=
"input"
;
input_thread_t
*
p_input
=
NULL
;
/* thread descriptor */
vlc_value_t
val
;
int
i
;
/* Allocate descriptor */
p_input
=
vlc_object_create
(
p_parent
,
VLC_OBJECT_INPUT
);
p_input
=
vlc_custom_create
(
p_parent
,
sizeof
(
*
p_input
),
VLC_OBJECT_INPUT
,
input_name
);
if
(
p_input
==
NULL
)
{
msg_Err
(
p_parent
,
"out of memory"
);
...
...
src/misc/objects.c
View file @
28257ce4
...
...
@@ -48,7 +48,6 @@
#include <vlc_sout.h>
#include "stream_output/stream_output.h"
#include "vlc_playlist.h"
#include "vlc_interface.h"
#include "vlc_codec.h"
#include "vlc_filter.h"
...
...
@@ -256,14 +255,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
i_size
=
sizeof
(
intf_thread_t
);
psz_type
=
"dialogs"
;
break
;
case
VLC_OBJECT_PLAYLIST
:
i_size
=
sizeof
(
playlist_t
);
psz_type
=
"playlist"
;
break
;
case
VLC_OBJECT_INPUT
:
i_size
=
sizeof
(
input_thread_t
);
psz_type
=
"input"
;
break
;
case
VLC_OBJECT_DEMUX
:
i_size
=
sizeof
(
demux_t
);
psz_type
=
"demux"
;
...
...
src/playlist/engine.c
View file @
28257ce4
...
...
@@ -59,12 +59,14 @@ static int RandomCallback( vlc_object_t *p_this, char const *psz_cmd,
*/
playlist_t
*
playlist_Create
(
vlc_object_t
*
p_parent
)
{
static
const
char
playlist_name
[]
=
"playlist"
;
playlist_t
*
p_playlist
;
vlc_bool_t
b_save
;
int
i_tree
;
/* Allocate structure */
p_playlist
=
vlc_object_create
(
p_parent
,
VLC_OBJECT_PLAYLIST
);
p_playlist
=
vlc_custom_create
(
p_parent
,
sizeof
(
*
p_playlist
),
VLC_OBJECT_PLAYLIST
,
playlist_name
);
if
(
!
p_playlist
)
{
msg_Err
(
p_parent
,
"out of memory"
);
...
...
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