diff options
author | Julien Moutte <julien@moutte.net> | 2003-04-17 10:20:25 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2003-04-17 10:20:25 +0000 |
commit | b87a47250466053978bb90c72afb00830ec3fa52 (patch) | |
tree | ccff6b2e8e4bfba98980049697d147a579e9d405 | |
parent | b8ef2ab70801d24932b50b22cfa78d9f1d417c94 (diff) | |
download | gst-plugins-bad-b87a47250466053978bb90c72afb00830ec3fa52.tar.gz gst-plugins-bad-b87a47250466053978bb90c72afb00830ec3fa52.tar.bz2 gst-plugins-bad-b87a47250466053978bb90c72afb00830ec3fa52.zip |
Changed sanity checks according to BBB feedback
Original commit message from CVS:
Changed sanity checks according to BBB feedback
-rw-r--r-- | gst-libs/gst/play/play.old.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst-libs/gst/play/play.old.c b/gst-libs/gst/play/play.old.c index 895c530f..1becf292 100644 --- a/gst-libs/gst/play/play.old.c +++ b/gst-libs/gst/play/play.old.c @@ -154,8 +154,8 @@ gst_play_set_property ( GObject *object, { GstPlay *play; g_return_if_fail (object != NULL); + g_return_if_fail (GST_IS_PLAY (object)); play = GST_PLAY (object); - g_return_if_fail (GST_IS_PLAY (play)); switch (prop_id) { case ARG_LOCATION: @@ -181,8 +181,8 @@ gst_play_get_property ( GObject *object, { GstPlay *play; g_return_if_fail (object != NULL); + g_return_if_fail (GST_IS_PLAY (object)); play = GST_PLAY (object); - g_return_if_fail (GST_IS_PLAY (play)); switch (prop_id) { case ARG_LOCATION: @@ -513,6 +513,8 @@ callback_pipeline_state_change ( GstElement *element, static void gst_play_dispose (GObject *object) { + g_return_if_fail (object != NULL); + g_return_if_fail (GST_IS_PLAY(object)); GstPlay *play = GST_PLAY (object); /* Removing all sources */ |