Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
obs-studio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yunxiang Li
obs-studio
Commits
083b5d69
Commit
083b5d69
authored
10 years ago
by
Palana
Browse files
Options
Downloads
Patches
Plain Diff
Update statusbar when recording
parent
b4311a0d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
obs/window-basic-main.cpp
+16
-0
16 additions, 0 deletions
obs/window-basic-main.cpp
obs/window-basic-main.hpp
+1
-0
1 addition, 0 deletions
obs/window-basic-main.hpp
with
17 additions
and
0 deletions
obs/window-basic-main.cpp
+
16
−
0
View file @
083b5d69
...
...
@@ -282,6 +282,14 @@ static void OBSStopStreaming(void *data, calldata_t params)
"StreamingStop"
,
Q_ARG
(
int
,
code
));
}
static
void
OBSStartRecording
(
void
*
data
,
calldata_t
params
)
{
UNUSED_PARAMETER
(
params
);
QMetaObject
::
invokeMethod
(
static_cast
<
OBSBasic
*>
(
data
),
"RecordingStart"
);
}
static
void
OBSStopRecording
(
void
*
data
,
calldata_t
params
)
{
UNUSED_PARAMETER
(
params
);
...
...
@@ -359,6 +367,8 @@ bool OBSBasic::InitOutputs()
signal_handler_connect
(
obs_output_get_signal_handler
(
streamOutput
),
"stop"
,
OBSStopStreaming
,
this
);
signal_handler_connect
(
obs_output_get_signal_handler
(
fileOutput
),
"start"
,
OBSStartRecording
,
this
);
signal_handler_connect
(
obs_output_get_signal_handler
(
fileOutput
),
"stop"
,
OBSStopRecording
,
this
);
...
...
@@ -1944,8 +1954,14 @@ void OBSBasic::StreamingStop(int code)
QT_UTF8
(
errorMessage
));
}
void
OBSBasic
::
RecordingStart
()
{
ui
->
statusbar
->
RecordingStarted
(
fileOutput
);
}
void
OBSBasic
::
RecordingStop
()
{
ui
->
statusbar
->
RecordingStopped
();
activeRefs
--
;
ui
->
recordButton
->
setText
(
QTStr
(
"Basic.Main.StartRecording"
));
}
...
...
This diff is collapsed.
Click to expand it.
obs/window-basic-main.hpp
+
1
−
0
View file @
083b5d69
...
...
@@ -146,6 +146,7 @@ public slots:
void
StreamingStart
();
void
StreamingStop
(
int
errorcode
);
void
RecordingStart
();
void
RecordingStop
();
private
slots
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment