Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
cad93330460c
Commit
83ea0194
authored
Nov 26, 2016
by
g3gg0
Browse files
mlv_play: restore bpp and black level in raw_info on exit
--HG-- branch : unified
parent
e7913102f817
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/mlv_play/mlv_play.c
View file @
cad93330
...
...
@@ -2328,6 +2328,10 @@ static struct semaphore * mlv_play_sem = 0;
static
void
mlv_play_task
(
void
*
priv
)
{
/* we will later restore that value */
int
old_black_level
=
raw_info
.
black_level
;
int
old_bits_per_pixel
=
raw_info
.
bits_per_pixel
;
if
(
take_semaphore
(
mlv_play_sem
,
100
))
{
NotifyBox
(
2000
,
"mlv_play already running"
);
...
...
@@ -2444,6 +2448,10 @@ cleanup:
mlv_play_delete_requested
=
0
;
mlv_play_osd_delete_selected
=
0
;
give_semaphore
(
mlv_play_sem
);
/* undo black level change */
raw_info
.
black_level
=
old_black_level
;
raw_info
.
bits_per_pixel
=
old_bits_per_pixel
;
}
...
...
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