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
5f17cb41
Commit
5f17cb41
authored
Jun 28, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: inline input_CreateAndStart(), fix error handling
parent
192d8de5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
25 deletions
+21
-25
include/vlc_input.h
include/vlc_input.h
+21
-3
src/input/input.c
src/input/input.c
+0
-21
src/libvlccore.sym
src/libvlccore.sym
+0
-1
No files found.
include/vlc_input.h
View file @
5f17cb41
...
@@ -495,9 +495,6 @@ enum input_query_e
...
@@ -495,9 +495,6 @@ enum input_query_e
VLC_API
input_thread_t
*
input_Create
(
vlc_object_t
*
p_parent
,
input_item_t
*
,
const
char
*
psz_log
,
input_resource_t
*
)
VLC_USED
;
VLC_API
input_thread_t
*
input_Create
(
vlc_object_t
*
p_parent
,
input_item_t
*
,
const
char
*
psz_log
,
input_resource_t
*
)
VLC_USED
;
#define input_Create(a,b,c,d) input_Create(VLC_OBJECT(a),b,c,d)
#define input_Create(a,b,c,d) input_Create(VLC_OBJECT(a),b,c,d)
VLC_API
input_thread_t
*
input_CreateAndStart
(
vlc_object_t
*
p_parent
,
input_item_t
*
,
const
char
*
psz_log
)
VLC_USED
;
#define input_CreateAndStart(a,b,c) input_CreateAndStart(VLC_OBJECT(a),b,c)
VLC_API
int
input_Start
(
input_thread_t
*
);
VLC_API
int
input_Start
(
input_thread_t
*
);
VLC_API
void
input_Stop
(
input_thread_t
*
);
VLC_API
void
input_Stop
(
input_thread_t
*
);
...
@@ -511,6 +508,27 @@ VLC_API int input_Control( input_thread_t *, int i_query, ... );
...
@@ -511,6 +508,27 @@ VLC_API int input_Control( input_thread_t *, int i_query, ... );
VLC_API
void
input_Close
(
input_thread_t
*
);
VLC_API
void
input_Close
(
input_thread_t
*
);
/**
* Create a new input_thread_t and start it.
*
* Provided for convenience.
*
* \see input_Create
*/
static
inline
input_thread_t
*
input_CreateAndStart
(
vlc_object_t
*
parent
,
input_item_t
*
item
,
const
char
*
log
)
{
input_thread_t
*
input
=
input_Create
(
parent
,
item
,
log
,
NULL
);
if
(
input
!=
NULL
&&
input_Start
(
input
)
)
{
vlc_object_release
(
input
);
input
=
NULL
;
}
return
input
;
}
#define input_CreateAndStart(a,b,c) input_CreateAndStart(VLC_OBJECT(a),b,c)
/**
/**
* Get the input item for an input thread
* Get the input item for an input thread
*
*
...
...
src/input/input.c
View file @
5f17cb41
...
@@ -129,27 +129,6 @@ input_thread_t *input_Create( vlc_object_t *p_parent,
...
@@ -129,27 +129,6 @@ input_thread_t *input_Create( vlc_object_t *p_parent,
return
Create
(
p_parent
,
p_item
,
psz_log
,
false
,
p_resource
);
return
Create
(
p_parent
,
p_item
,
psz_log
,
false
,
p_resource
);
}
}
#undef input_CreateAndStart
/**
* Create a new input_thread_t and start it.
*
* Provided for convenience.
*
* \see input_Create
*/
input_thread_t
*
input_CreateAndStart
(
vlc_object_t
*
p_parent
,
input_item_t
*
p_item
,
const
char
*
psz_log
)
{
input_thread_t
*
p_input
=
input_Create
(
p_parent
,
p_item
,
psz_log
,
NULL
);
if
(
input_Start
(
p_input
)
)
{
vlc_object_release
(
p_input
);
return
NULL
;
}
return
p_input
;
}
#undef input_Read
#undef input_Read
/**
/**
* Initialize an input thread and run it until it stops by itself.
* Initialize an input thread and run it until it stops by itself.
...
...
src/libvlccore.sym
View file @
5f17cb41
...
@@ -173,7 +173,6 @@ image_Type2Fourcc
...
@@ -173,7 +173,6 @@ image_Type2Fourcc
InitMD5
InitMD5
input_Control
input_Control
input_Create
input_Create
input_CreateAndStart
input_CreateFilename
input_CreateFilename
input_DecoderCreate
input_DecoderCreate
input_DecoderDelete
input_DecoderDelete
...
...
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