jhgorse / onevideo

Connected Collaboration: Peer-to-peer video conferencing
GNU Lesser General Public License v2.1
4 stars 0 forks source link

videotestsrc stream not displayed on remote peer if audiosrc fails to setup #19

Open jhgorse opened 8 years ago

jhgorse commented 8 years ago

How to reproduce:

Set asrc device to something which fails (does not exist)

ov-local-peer-setup.c:214

#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, 
    "device", 
    "I do not exist",
    //"alsa_input.usb-046d_HD_Pro_Webcam_C920_5AF4D62F-02-C920.analog-stereo", // This would exist
    NULL);

Set bunk video device to get test source

./debug-one-video-gui.sh -d test

Upon calling and being called, the videotestsrc is not displayed.

Possible remedies: check that the asrc can produce sound stream. If not, set to null test source or otherwise muted stream (a feature needed eventually anyway).