[totem] Handle more enum values from GstInstallPluginsReturn
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Handle more enum values from GstInstallPluginsReturn
- Date: Sat, 18 Sep 2010 11:18:07 +0000 (UTC)
commit 80bd764690fad9e5c99da999fc1d3f67ca9e3656
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Sep 18 12:16:53 2010 +0100
Handle more enum values from GstInstallPluginsReturn
This silences a gcc warning about not handling all enum values in a switch
statement, and makes the code more explicit.
.../bacon-video-widget-gst-missing-plugins.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-missing-plugins.c b/src/backend/bacon-video-widget-gst-missing-plugins.c
index 0c0d3ef..bb874ca 100644
--- a/src/backend/bacon-video-widget-gst-missing-plugins.c
+++ b/src/backend/bacon-video-widget-gst-missing-plugins.c
@@ -207,6 +207,7 @@ on_plugin_installation_done (GstInstallPluginsReturn res, gpointer user_data)
}
}
break;
+ case GST_INSTALL_PLUGINS_INVALID:
case GST_INSTALL_PLUGINS_ERROR:
case GST_INSTALL_PLUGINS_CRASHED:
default:
@@ -220,6 +221,14 @@ on_plugin_installation_done (GstInstallPluginsReturn res, gpointer user_data)
bacon_video_widget_stop (ctx->bvw);
break;
}
+ case GST_INSTALL_PLUGINS_STARTED_OK:
+ case GST_INSTALL_PLUGINS_INTERNAL_FAILURE:
+ case GST_INSTALL_PLUGINS_HELPER_MISSING:
+ case GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS:
+ {
+ g_assert_not_reached ();
+ break;
+ }
}
bacon_video_widget_gst_codec_install_context_free (ctx);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]