queue2: Update buffering status and maybe post buffering message right when enabling...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 19 Mar 2014 08:33:53 +0000 (09:33 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 19 Mar 2014 08:48:45 +0000 (09:48 +0100)
plugins/elements/gstqueue2.c

index 00dd57296f2ef322139ac257fa92400b63f9e059..a03cc0c23021e96bc61faf5dd395009ee768df51 100644 (file)
@@ -3394,6 +3394,11 @@ gst_queue2_set_property (GObject * object,
         queue->is_buffering = FALSE;
         gst_element_post_message (GST_ELEMENT_CAST (queue), msg);
       }
+
+      if (queue->use_buffering) {
+        queue->is_buffering = TRUE;
+        update_buffering (queue);
+      }
       break;
     case PROP_USE_RATE_ESTIMATE:
       queue->use_rate_estimate = g_value_get_boolean (value);