Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
af6ffdaa
Commit
af6ffdaa
authored
Jan 08, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed pl counter and make sure we pause the input on minimaturize (closes #5809)
parent
09ad74bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+9
-1
No files found.
modules/gui/macosx/MainWindow.m
View file @
af6ffdaa
...
@@ -442,6 +442,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -442,6 +442,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
o_time_sld_fancygradient_view
removeFromSuperviewWithoutNeedingDisplay
];
[
o_time_sld_fancygradient_view
removeFromSuperviewWithoutNeedingDisplay
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
someWindowWillClose
:
)
name
:
NSWindowWillCloseNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
someWindowWillClose
:
)
name
:
NSWindowWillCloseNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
someWindowWillMiniaturize
:
)
name
:
NSWindowWillMiniaturizeNotification
object
:
nil
];
}
}
#pragma mark -
#pragma mark -
...
@@ -1054,6 +1055,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1054,6 +1055,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
else
else
[
self
showDropZone
];
[
self
showDropZone
];
PL_UNLOCK
;
PL_UNLOCK
;
[
o_sidebar_view
setNeedsDisplay
:
YES
];
}
}
-
(
void
)
setPause
-
(
void
)
setPause
...
@@ -1239,6 +1241,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1239,6 +1241,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
[[
VLCCoreInteraction
sharedInstance
]
stop
];
[[
VLCCoreInteraction
sharedInstance
]
stop
];
}
}
-
(
void
)
someWindowWillMiniaturize
:(
NSNotification
*
)
notification
{
if
([
notification
object
]
==
o_nonembedded_window
||
[
notification
object
]
==
self
)
[[
VLCCoreInteraction
sharedInstance
]
pause
];
}
#pragma mark -
#pragma mark -
#pragma mark Fullscreen support
#pragma mark Fullscreen support
-
(
void
)
showFullscreenController
-
(
void
)
showFullscreenController
...
@@ -1849,7 +1857,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1849,7 +1857,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
NSInteger
i_playlist_size
;
NSInteger
i_playlist_size
;
PL_LOCK
;
PL_LOCK
;
i_playlist_size
=
p
laylist_CurrentSize
(
p_playlist
)
;
i_playlist_size
=
p
_playlist
->
items
.
i_size
;
PL_UNLOCK
;
PL_UNLOCK
;
return
i_playlist_size
;
return
i_playlist_size
;
...
...
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