Fixed bug: in some cases the video was blank because of bad audio connection.

This commit is contained in:
Tats
2016-11-09 15:36:14 -05:00
parent 8484b1510b
commit f2cd276286
3 changed files with 13 additions and 4 deletions
+8
View File
@@ -306,6 +306,10 @@ void VideoImpl::resetMovie()
bool VideoImpl::createVideoComponents()
{
// Already supported?
if (videoIsSupported())
return true;
// Create the video elements.
_queue0 = gst_element_factory_make ("queue", "queue0");
_videoconvert0 = gst_element_factory_make ("videoconvert", "videoconvert0");
@@ -356,6 +360,10 @@ bool VideoImpl::createVideoComponents()
bool VideoImpl::createAudioComponents()
{
// Already supported?
if (audioIsSupported())
return true;
// Create the audio elements.
_audioqueue0 = gst_element_factory_make ("queue", "audioqueue0");
_audioconvert0 = gst_element_factory_make ("audioconvert", "audioconvert0");