Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
36dc476f
Commit
36dc476f
authored
Feb 09, 2013
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: return true for pictq_prev_picture if it was successful
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
3070600d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ffplay.c
ffplay.c
+4
-1
No files found.
ffplay.c
View file @
36dc476f
...
...
@@ -1255,8 +1255,9 @@ static void pictq_next_picture(VideoState *is) {
SDL_UnlockMutex
(
is
->
pictq_mutex
);
}
static
void
pictq_prev_picture
(
VideoState
*
is
)
{
static
int
pictq_prev_picture
(
VideoState
*
is
)
{
VideoPicture
*
prevvp
;
int
ret
=
0
;
/* update queue size and signal for the previous picture */
prevvp
=
&
is
->
pictq
[(
is
->
pictq_rindex
+
VIDEO_PICTURE_QUEUE_SIZE
-
1
)
%
VIDEO_PICTURE_QUEUE_SIZE
];
if
(
prevvp
->
allocated
&&
prevvp
->
serial
==
is
->
videoq
.
serial
)
{
...
...
@@ -1265,10 +1266,12 @@ static void pictq_prev_picture(VideoState *is) {
if
(
--
is
->
pictq_rindex
==
-
1
)
is
->
pictq_rindex
=
VIDEO_PICTURE_QUEUE_SIZE
-
1
;
is
->
pictq_size
++
;
ret
=
1
;
}
SDL_CondSignal
(
is
->
pictq_cond
);
SDL_UnlockMutex
(
is
->
pictq_mutex
);
}
return
ret
;
}
static
void
update_video_pts
(
VideoState
*
is
,
double
pts
,
int64_t
pos
,
int
serial
)
{
...
...
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