libs/gst/net/: Stop reading commands when EOF as well.
authorWim Taymans <wim.taymans@gmail.com>
Fri, 29 Sep 2006 08:22:22 +0000 (08:22 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 29 Sep 2006 08:22:22 +0000 (08:22 +0000)
Original commit message from CVS:
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_thread):
* libs/gst/net/gstnettimeprovider.c:
(gst_net_time_provider_thread):
Stop reading commands when EOF as well.
* plugins/elements/gstfakesink.c: (gst_fake_sink_class_init):
* plugins/elements/gstfakesrc.c: (gst_fake_src_class_init):
* plugins/elements/gstidentity.c: (gst_identity_class_init):
Unify description of the dump property.

ChangeLog
libs/gst/net/gstnetclientclock.c
libs/gst/net/gstnettimeprovider.c
plugins/elements/gstfakesink.c
plugins/elements/gstfakesrc.c
plugins/elements/gstidentity.c

index d8b8a8a6d8330995707cd21e8680ecebcc0a79c3..1e1a1a2a4c464978d7a48f9c2f0a9203f7d71cca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-09-29  Wim Taymans  <wim@fluendo.com>
+
+       * libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_thread):
+       * libs/gst/net/gstnettimeprovider.c:
+       (gst_net_time_provider_thread):
+       Stop reading commands when EOF as well.
+
+       * plugins/elements/gstfakesink.c: (gst_fake_sink_class_init):
+       * plugins/elements/gstfakesrc.c: (gst_fake_src_class_init):
+       * plugins/elements/gstidentity.c: (gst_identity_class_init):
+       Unify description of the dump property.
+
 2006-09-28  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * tests/examples/manual/.cvsignore:
index 9343ca7bd1457d20f03834dd05528d4f3f096eff..b3b3f22dde393db0c85452c6719b0d6dfde85107 100644 (file)
@@ -384,7 +384,7 @@ gst_net_client_clock_thread (gpointer data)
         int res;
 
         READ_COMMAND (self, command, res);
-        if (res < 0) {
+        if (res <= 0) {
           GST_LOG_OBJECT (self, "no more commands");
           break;
         }
index ee24df41378f2d547d539441e8c6922e0fe5b9d9..e7ca61ccdc37a6e92c744d45cbf41586ed23346b 100644 (file)
@@ -260,7 +260,7 @@ gst_net_time_provider_thread (gpointer data)
         int res;
 
         READ_COMMAND (self, command, res);
-        if (res < 0) {
+        if (res <= 0) {
           GST_LOG_OBJECT (self, "no more commands");
           break;
         }
index 3c8dd0a47c732a7c564eb7927e4f834e61643f73..280efd004b4ef2c370060b9a709a88f12656b620 100644 (file)
@@ -174,7 +174,7 @@ gst_fake_sink_class_init (GstFakeSinkClass * klass)
           "Don't produce last_message events", DEFAULT_SILENT,
           G_PARAM_READWRITE));
   g_object_class_install_property (gobject_class, PROP_DUMP,
-      g_param_spec_boolean ("dump", "Dump", "Dump received bytes to stdout",
+      g_param_spec_boolean ("dump", "Dump", "Dump buffer contents to stdout",
           DEFAULT_DUMP, G_PARAM_READWRITE));
   g_object_class_install_property (gobject_class,
       PROP_CAN_ACTIVATE_PUSH,
index ea192c4722f5d869c6b7095824cabcf78157a56b..ed48f6ab26eee99a83817a986e47cd7f0d2337c0 100644 (file)
@@ -310,7 +310,7 @@ gst_fake_src_class_init (GstFakeSrcClass * klass)
           "Send a signal before pushing the buffer", DEFAULT_SIGNAL_HANDOFFS,
           G_PARAM_READWRITE));
   g_object_class_install_property (gobject_class, PROP_DUMP,
-      g_param_spec_boolean ("dump", "Dump", "Dump produced bytes to stdout",
+      g_param_spec_boolean ("dump", "Dump", "Dump buffer contents to stdout",
           DEFAULT_DUMP, G_PARAM_READWRITE));
   g_object_class_install_property (gobject_class,
       PROP_CAN_ACTIVATE_PUSH,
index ca5872be443b521602f1b376f0eaa3232dc58be2..8960eb9e494921733da799112e00454bed6fa397 100644 (file)
@@ -200,7 +200,7 @@ gst_identity_class_init (GstIdentityClass * klass)
       g_param_spec_string ("last-message", "last-message", "last-message", NULL,
           G_PARAM_READABLE));
   g_object_class_install_property (gobject_class, PROP_DUMP,
-      g_param_spec_boolean ("dump", "Dump", "Dump buffer contents",
+      g_param_spec_boolean ("dump", "Dump", "Dump buffer contents to stdout",
           DEFAULT_DUMP, G_PARAM_READWRITE));
   g_object_class_install_property (gobject_class, PROP_SYNC,
       g_param_spec_boolean ("sync", "Synchronize",