[cheese/shareable-media] Replace assert with warning
- From: Patricia Santana Cruz <patriciasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/shareable-media] Replace assert with warning
- Date: Wed, 28 Dec 2011 11:42:03 +0000 (UTC)
commit e5c2d16d58603b18c315199d5d2ba58f014828a0
Author: Patricia Santana Cruz <patriciasantanacruz gmail com>
Date: Wed Dec 28 11:40:24 2011 +0000
Replace assert with warning
Replaced an assert with a warning in the case where a picture or video
is not loaded correctly.
src/cheese-shareable-media.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/cheese-shareable-media.vala b/src/cheese-shareable-media.vala
index 3b1b0e8..dc16dba 100644
--- a/src/cheese-shareable-media.vala
+++ b/src/cheese-shareable-media.vala
@@ -7,9 +7,10 @@ namespace ShareableMedia {
void child_finished (Pid pid, int status)
{
- // status will be true if the child terminates normally:
+ // status will be 0 if the child terminates normally:
// calling exit(3) or _exit(2), or by returning from main()
- assert (status == 0);
+ if (status != 0)
+ warning ("A problem occured while loading the file(s)");
Process.close_pid(pid);
window.get_window().set_cursor(new Gdk.Cursor(Gdk.CursorType.LEFT_PTR));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]