Closed jhgorse closed 8 years ago
diff --git a/onevideo/ov-local-peer-setup.c b/onevideo/ov-local-peer-setup.c
index 8009970..7ab7e06 100644
--- a/onevideo/ov-local-peer-setup.c
+++ b/onevideo/ov-local-peer-setup.c
@@ -148,6 +148,7 @@ ov_local_peer_setup_playback_pipeline (OvLocalPeer * local)
g_object_unref (bus);
GST_DEBUG ("Setup pipeline to playback remote peers");
+ //GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN (priv->playback), GST_DEBUG_GRAPH_SHOW_ALL, "playback_pipeline");
return TRUE;
}
@@ -214,7 +215,12 @@ ov_local_peer_setup_transmit_pipeline (OvLocalPeer * local)
#ifdef __linux__
asrc = gst_element_factory_make ("pulsesrc", NULL);
/* latency-time to 5 ms, we use the system clock */
- g_object_set (asrc, "latency-time", 5000, "provide-clock", FALSE, NULL);
+// pactl list | grep -A2 'Source #' | grep Name
+ g_object_set (asrc, "latency-time", 5000, "provide-clock", FALSE,
+// "device",
+// "alsa_input.usb-046d_HD_Pro_Webcam_C920_3ADB57FF-02-C920.analog-stereo",
+//"alsa_input.usb-046d_0821_94E6A8A0-00-U0x46d0x821.analog-stereo",
+ NULL);
#elif defined(__APPLE__) && defined(TARGET_OS_MAC)
asrc = ov_pipeline_get_osxaudiosrcbin (NULL);
/* same properties as above already set on the source element */
@@ -376,6 +382,7 @@ ov_local_peer_setup_transmit_pipeline (OvLocalPeer * local)
g_object_unref (bus);
GST_DEBUG ("Setup pipeline to transmit to remote peers");
+ //GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN (priv->transmit), GST_DEBUG_GRAPH_SHOW_ALL, "transmit_pipeline");
return TRUE;
}
@@ -676,6 +683,7 @@ ov_local_peer_setup_remote_receive (OvLocalPeer * local, OvRemotePeer * remote)
remote->priv->video_proxysink = vsink;
GST_DEBUG ("Setup pipeline to receive from remote");
+ //GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN (remote->receive), GST_DEBUG_GRAPH_SHOW_ALL, "remote_receive_pipeline");
g_free (remote_addr_s);
g_free (local_addr_s);
}
@@ -756,4 +764,6 @@ ov_local_peer_setup_remote_playback (OvLocalPeer * local, OvRemotePeer * remote)
}
GST_DEBUG ("Setup local pipeline to playback remote");
+ //GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN (remote->priv->vplayback), GST_DEBUG_GRAPH_SHOW_ALL, "remote_vplayback_pipeline");
+ //GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN (priv->playback), GST_DEBUG_GRAPH_SHOW_ALL, "remote_playback_pipeline");
}
Done. See GDrive link for N=2 and N=3
Dot files to yEd xml: http://dl9obn.darc.de/programming/python/dottoxml/