mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
recorder: Don't crash on pipeline errors
In case of error, the recorder pipeline is reset to NULL, so don't access current_pipeline->src in that case. https://bugzilla.gnome.org/show_bug.cgi?id=679445
This commit is contained in:
parent
f9dbe56785
commit
f17fc43d6e
1 changed files with 2 additions and 0 deletions
|
|
@ -526,6 +526,8 @@ recorder_record_frame (ShellRecorder *recorder)
|
|||
guint size;
|
||||
GstClockTime now;
|
||||
|
||||
g_return_if_fail (recorder->current_pipeline != NULL);
|
||||
|
||||
/* If we get into the red zone, stop buffering new frames; 13/16 is
|
||||
* a bit more than the 3/4 threshold for a red indicator to keep the
|
||||
* indicator from flashing between red and yellow. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue