r2653 - in trunk/src/target/OM-2007.2/applications/openmoko-dialer2: . src
njp at sita.openmoko.org
njp at sita.openmoko.org
Mon Aug 6 18:39:10 CEST 2007
Author: njp
Date: 2007-08-06 18:39:09 +0200 (Mon, 06 Aug 2007)
New Revision: 2653
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-notify.c
Log:
2007-08-06 Neil J. Patel <njp at o-hand.com>
* src/moko-notify.c: (on_bus_message):
Connect to the right signals!
Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog 2007-08-06 16:33:24 UTC (rev 2652)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog 2007-08-06 16:39:09 UTC (rev 2653)
@@ -1,5 +1,10 @@
2007-08-06 Neil J. Patel <njp at o-hand.com>
+ * src/moko-notify.c: (on_bus_message):
+ Connect to the right signals!
+
+2007-08-06 Neil J. Patel <njp at o-hand.com>
+
* src/moko-notify.c: (on_bus_message),
(moko_notify_start_ringtone):
Some more looping fixes.
Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-notify.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-notify.c 2007-08-06 16:33:24 UTC (rev 2652)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-notify.c 2007-08-06 16:39:09 UTC (rev 2653)
@@ -58,17 +58,19 @@
*/
-static void
+static gboolean
on_bus_message (GstBus *bus, GstMessage *message, MokoNotify *notify)
{
MokoNotifyPrivate *priv;
- g_return_if_fail (MOKO_IS_NOTIFY (notify));
- g_return_if_fail (GST_IS_ELEMENT (notify->priv->bin));
+ g_return_val_if_fail (MOKO_IS_NOTIFY (notify), TRUE);
+ g_return_val_if_fail (GST_IS_ELEMENT (notify->priv->bin), TRUE);
priv = notify->priv;
+ g_print (".");
+
if (GST_MESSAGE_TYPE (message) != GST_MESSAGE_EOS)
- return;
+ return TRUE;
/* Rewind and play again */
gst_element_set_state (priv->bin, GST_STATE_PAUSED);
@@ -76,7 +78,7 @@
/* Seek to 0 */
if (!gst_element_seek_simple (priv->bin, GST_FORMAT_TIME, 0, 0))
g_error ("Seek error\n");
- return;
+ return TRUE;
gst_element_set_state (priv->bin, GST_STATE_PLAYING);
More information about the commitlog
mailing list