gio: Remove workaround for playbin2 bug in the sample application

The playbin2 bug was #588078.
This commit is contained in:
Sebastian Dröge 2009-07-10 17:15:48 +02:00
parent 3d751d190d
commit f98d0f8895

View file

@ -34,15 +34,9 @@ mount_cb (GObject * obj, GAsyncResult * res, gpointer user_data)
ret = g_file_mount_enclosing_volume_finish (G_FILE (obj), res, &err); ret = g_file_mount_enclosing_volume_finish (G_FILE (obj), res, &err);
if (ret) { if (ret) {
const gchar *uri;
g_print ("mounted successfully\n"); g_print ("mounted successfully\n");
gst_bus_set_flushing ((GstBus *) user_data, FALSE); gst_bus_set_flushing ((GstBus *) user_data, FALSE);
/* FIXME: This works around bug #588078 */
g_object_get (G_OBJECT (pipeline), "uri", &uri, NULL);
g_object_set (G_OBJECT (pipeline), "uri", uri, NULL);
gst_element_set_state (pipeline, GST_STATE_PLAYING); gst_element_set_state (pipeline, GST_STATE_PLAYING);
} else { } else {
g_print ("mounting failed: %s\n", err->message); g_print ("mounting failed: %s\n", err->message);