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
6fac1fab
Commit
6fac1fab
authored
Sep 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (simplify after input_Read change).
parent
c2766f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
30 deletions
+8
-30
src/input/input.c
src/input/input.c
+8
-30
No files found.
src/input/input.c
View file @
6fac1fab
...
...
@@ -64,7 +64,6 @@
static
void
Destructor
(
input_thread_t
*
p_input
);
static
void
*
Run
(
vlc_object_t
*
p_this
);
static
void
*
RunAndDestroy
(
vlc_object_t
*
p_this
);
static
input_thread_t
*
Create
(
vlc_object_t
*
,
input_item_t
*
,
const
char
*
,
bool
,
input_resource_t
*
);
...
...
@@ -164,13 +163,17 @@ input_thread_t *__input_CreateAndStart( vlc_object_t *p_parent,
*/
int
__input_Read
(
vlc_object_t
*
p_parent
,
input_item_t
*
p_item
)
{
input_thread_t
*
p_input
;
p_input
=
Create
(
p_parent
,
p_item
,
NULL
,
false
,
NULL
);
input_thread_t
*
p_input
=
Create
(
p_parent
,
p_item
,
NULL
,
false
,
NULL
);
if
(
!
p_input
)
return
VLC_EGENERIC
;
RunAndDestroy
(
VLC_OBJECT
(
p_input
)
);
if
(
!
Init
(
p_input
)
)
{
MainLoop
(
p_input
);
End
(
p_input
);
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
...
...
@@ -542,31 +545,6 @@ exit:
return
NULL
;
}
/*****************************************************************************
* RunAndDestroy: main thread loop
* This is the "just forget me" thread that spawns the input processing chain,
* reads the stream, cleans up and releases memory
*****************************************************************************/
static
void
*
RunAndDestroy
(
vlc_object_t
*
p_this
)
{
input_thread_t
*
p_input
=
(
input_thread_t
*
)
p_this
;
const
int
canc
=
vlc_savecancel
();
if
(
Init
(
p_input
)
)
goto
exit
;
MainLoop
(
p_input
);
/* Clean up */
End
(
p_input
);
exit:
/* Release memory */
vlc_object_release
(
p_input
);
vlc_restorecancel
(
canc
);
return
NULL
;
}
/*****************************************************************************
* Main loop: Fill buffers from access, and demux
*****************************************************************************/
...
...
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