[gnome-shell] recorder: Don't crash on pipeline errors
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] recorder: Don't crash on pipeline errors
- Date: Thu, 5 Jul 2012 14:24:39 +0000 (UTC)
commit f17fc43d6e6ca837dee580b5a468cf889648c6f1
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu Jul 5 00:08:28 2012 +0200
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
src/shell-recorder.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-recorder.c b/src/shell-recorder.c
index 120ca0f..829ff32 100644
--- a/src/shell-recorder.c
+++ b/src/shell-recorder.c
@@ -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. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]