winegstreamer: Don't check event for NULL, gstreamer already does that.

This commit is contained in:
Fabian Maurer 2023-12-10 19:31:07 +01:00 committed by Alexandre Julliard
parent 8daf207bf7
commit 51b9d8ae65
2 changed files with 2 additions and 6 deletions

View file

@ -484,9 +484,7 @@ static NTSTATUS wg_parser_stream_notify_qos(void *args)
GST_LOG("Ignoring QoS event.");
return S_OK;
}
if (!(event = gst_event_new_qos(params->underflow ? GST_QOS_TYPE_UNDERFLOW : GST_QOS_TYPE_OVERFLOW,
params->proportion, diff, stream_time)))
GST_ERROR("Failed to create QOS event.");
event = gst_event_new_qos(params->underflow ? GST_QOS_TYPE_UNDERFLOW : GST_QOS_TYPE_OVERFLOW, params->proportion, diff, stream_time);
push_event(stream->my_sink, event);
return S_OK;

View file

@ -953,9 +953,7 @@ NTSTATUS wg_transform_notify_qos(void *args)
GST_LOG("Ignoring QoS event.");
return S_OK;
}
if (!(event = gst_event_new_qos(params->underflow ? GST_QOS_TYPE_UNDERFLOW : GST_QOS_TYPE_OVERFLOW,
params->proportion, diff, stream_time)))
GST_ERROR("Failed to create QOS event.");
event = gst_event_new_qos(params->underflow ? GST_QOS_TYPE_UNDERFLOW : GST_QOS_TYPE_OVERFLOW, params->proportion, diff, stream_time);
push_event(transform->my_sink, event);
return S_OK;