|
|
|
@ -19,10 +19,9 @@ VideoWidget::VideoWidget(QWidget *parent, Qt::WindowFlags f)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
VideoWidget::~VideoWidget() {
|
|
|
|
|
if (!isValid())
|
|
|
|
|
return; // 如果控件和OpenGL资源(如上下文)已成功初始化,则返回true。
|
|
|
|
|
// bool bbbb = isValid();
|
|
|
|
|
|
|
|
|
|
decodeStreamer->disconnect(this);
|
|
|
|
|
// decodeStreamer->disconnect(this);
|
|
|
|
|
stopPlay();
|
|
|
|
|
stopPushStream();
|
|
|
|
|
|
|
|
|
@ -39,6 +38,9 @@ VideoWidget::~VideoWidget() {
|
|
|
|
|
streamPusher->deleteLater();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!isValid())
|
|
|
|
|
return; // 如果控件和OpenGL资源(如上下文)已成功初始化,则返回true。
|
|
|
|
|
|
|
|
|
|
// 通过将相应的上下文设置为当前上下文并在该上下文中绑定帧缓冲区对象,为呈现此小部件的OpenGL内容做准备。
|
|
|
|
|
this->makeCurrent();
|
|
|
|
|
|
|
|
|
|