Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
4bdd926e
Commit
4bdd926e
authored
Nov 17, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed missing unlock in case of error (timeshift).
parent
75c6fc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/input/es_out_timeshift.c
src/input/es_out_timeshift.c
+4
-3
No files found.
src/input/es_out_timeshift.c
View file @
4bdd926e
...
...
@@ -59,8 +59,6 @@ enum
C_SEND
,
C_DEL
,
C_CONTROL
,
C_MAX
};
typedef
struct
...
...
@@ -764,6 +762,8 @@ static void TsPushCmd( ts_thread_t *p_ts, ts_cmd_t *p_cmd )
if
(
!
p_storage
)
{
CmdClean
(
p_cmd
);
vlc_mutex_unlock
(
&
p_ts
->
lock
);
/* TODO warn the user (but only once) */
return
;
}
...
...
@@ -779,6 +779,7 @@ static void TsPushCmd( ts_thread_t *p_ts, ts_cmd_t *p_cmd )
}
}
/* TODO return error and warn the user (but only once) */
TsStoragePushCmd
(
p_ts
->
p_storage_w
,
p_cmd
,
p_ts
->
p_storage_r
==
p_ts
->
p_storage_w
);
vlc_cond_signal
(
&
p_ts
->
wait
);
...
...
@@ -1143,7 +1144,7 @@ static void TsStoragePopCmd( ts_storage_t *p_storage, ts_cmd_t *p_cmd )
}
else
{
fprintf
(
stderr
,
"
----------------- 2
: %m
\n
"
);
//
fprintf( stderr, "
TsStoragePopCmd
: %m\n" );
p_cmd
->
send
.
p_block
=
block_Alloc
(
1
);
}
}
...
...
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