winegstreamer: Don't check event for NULL, gstreamer already does that.
This commit is contained in:
parent
8daf207bf7
commit
51b9d8ae65
2 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue