playbin3: remove dead code
authorWonchul Lee <wonchul.lee@collabora.com>
Tue, 15 Nov 2016 06:23:20 +0000 (15:23 +0900)
committerJan Schmidt <jan@centricular.com>
Tue, 15 Nov 2016 13:17:18 +0000 (00:17 +1100)
It never reach into this code path, custom_combiner always not null
here.

https://bugzilla.gnome.org/show_bug.cgi?id=774454

gst/playback/gstplaybin3.c

index 3c5bd47..176a9f8 100644 (file)
@@ -2845,15 +2845,6 @@ pad_added_cb (GstElement * decodebin, GstPad * pad, GstPlayBin3 * playbin)
         g_object_class_find_property (G_OBJECT_GET_CLASS (combine->combiner),
         "active-pad") != NULL;
 
-    if (!custom_combiner) {
-      /* sync-mode=1, use clock */
-      if (combine->type == GST_PLAY_SINK_TYPE_TEXT)
-        g_object_set (combine->combiner, "sync-streams", TRUE,
-            "sync-mode", 1, "cache-buffers", TRUE, NULL);
-      else
-        g_object_set (combine->combiner, "sync-streams", TRUE, NULL);
-    }
-
     if (combine->has_active_pad)
       g_signal_connect (combine->combiner, "notify::active-pad",
           G_CALLBACK (combiner_active_pad_changed), playbin);