Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
c870537e
Commit
c870537e
authored
Jun 08, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/stream_out/transcode.c: backport of 11350.
parent
c84e40d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+9
-8
No files found.
modules/stream_out/transcode.c
View file @
c870537e
...
@@ -1851,7 +1851,8 @@ static void video_release_buffer( picture_t *p_pic )
...
@@ -1851,7 +1851,8 @@ static void video_release_buffer( picture_t *p_pic )
else
if
(
p_pic
&&
p_pic
->
i_refcount
>
0
)
p_pic
->
i_refcount
--
;
else
if
(
p_pic
&&
p_pic
->
i_refcount
>
0
)
p_pic
->
i_refcount
--
;
}
}
static
picture_t
*
video_new_buffer
(
vlc_object_t
*
p_this
,
picture_t
**
pp_ring
)
static
picture_t
*
video_new_buffer
(
vlc_object_t
*
p_this
,
picture_t
**
pp_ring
,
sout_stream_sys_t
*
p_sys
)
{
{
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
picture_t
*
p_pic
;
picture_t
*
p_pic
;
...
@@ -1871,15 +1872,14 @@ static picture_t *video_new_buffer( vlc_object_t *p_this, picture_t **pp_ring )
...
@@ -1871,15 +1872,14 @@ static picture_t *video_new_buffer( vlc_object_t *p_this, picture_t **pp_ring )
if
(
pp_ring
[
i
]
==
0
)
break
;
if
(
pp_ring
[
i
]
==
0
)
break
;
}
}
if
(
i
==
PICTURE_RING_SIZE
&&
p_
dec
->
p_owner
->
p_
sys
->
i_threads
>=
1
)
if
(
i
==
PICTURE_RING_SIZE
&&
p_sys
->
i_threads
>=
1
)
{
{
int
i_first_pic
=
p_
dec
->
p_owner
->
p_
sys
->
i_first_pic
;
int
i_first_pic
=
p_sys
->
i_first_pic
;
if
(
p_dec
->
p_owner
->
p_sys
->
i_first_pic
!=
if
(
p_sys
->
i_first_pic
!=
p_sys
->
i_last_pic
)
p_dec
->
p_owner
->
p_sys
->
i_last_pic
)
{
{
/* Encoder still has stuff to encode, wait to clear-up the list */
/* Encoder still has stuff to encode, wait to clear-up the list */
while
(
p_
dec
->
p_owner
->
p_
sys
->
i_first_pic
==
i_first_pic
)
while
(
p_sys
->
i_first_pic
==
i_first_pic
)
msleep
(
100000
);
msleep
(
100000
);
}
}
...
@@ -1938,13 +1938,14 @@ static picture_t *video_new_buffer( vlc_object_t *p_this, picture_t **pp_ring )
...
@@ -1938,13 +1938,14 @@ static picture_t *video_new_buffer( vlc_object_t *p_this, picture_t **pp_ring )
static
picture_t
*
video_new_buffer_decoder
(
decoder_t
*
p_dec
)
static
picture_t
*
video_new_buffer_decoder
(
decoder_t
*
p_dec
)
{
{
return
video_new_buffer
(
VLC_OBJECT
(
p_dec
),
return
video_new_buffer
(
VLC_OBJECT
(
p_dec
),
p_dec
->
p_owner
->
pp_pics
);
p_dec
->
p_owner
->
pp_pics
,
p_dec
->
p_owner
->
p_sys
);
}
}
static
picture_t
*
video_new_buffer_filter
(
filter_t
*
p_filter
)
static
picture_t
*
video_new_buffer_filter
(
filter_t
*
p_filter
)
{
{
return
video_new_buffer
(
VLC_OBJECT
(
p_filter
),
return
video_new_buffer
(
VLC_OBJECT
(
p_filter
),
p_filter
->
p_owner
->
pp_pics
);
p_filter
->
p_owner
->
pp_pics
,
p_filter
->
p_owner
->
p_sys
);
}
}
static
void
video_del_buffer
(
vlc_object_t
*
p_this
,
picture_t
*
p_pic
)
static
void
video_del_buffer
(
vlc_object_t
*
p_this
,
picture_t
*
p_pic
)
...
...
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