Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions gst/gstnicesink.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,16 @@ gst_nice_sink_on_overflow (GstNiceSink * sink,
if (stream_id == sink->stream_id && component_id == sink->component_id) {
GST_DEBUG_OBJECT (sink, "Sink overflow for stream %d, component %d", stream_id, component_id);

GstPad * sinkpad = GST_BASE_SINK_PAD (sink);
gst_object_ref(sinkpad);
#if GST_CHECK_VERSION (1,0,0)
gst_pad_push_event (GST_BASE_SINK_PAD (sink),
gst_pad_push_event (sinkpad,
gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, gst_structure_new_empty ("PexQosOverflow")));
#else
gst_pad_push_event (GST_BASE_SINK_PAD (sink),
gst_pad_push_event (sinkpad,
gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, gst_structure_new_empty ("PexQosOverflow")));
#endif
gst_object_unref(sinkpad);
}
}

Expand All @@ -219,14 +222,16 @@ gst_nice_sink_on_writable (GstNiceSink * sink,

if (stream_id == sink->stream_id && component_id == sink->component_id) {
GST_DEBUG_OBJECT (sink, "Sink underflow for stream %d, component %d", stream_id, component_id);

GstPad * sinkpad = GST_BASE_SINK_PAD (sink);
gst_object_ref(sinkpad);
#if GST_CHECK_VERSION (1,0,0)
gst_pad_push_event (GST_BASE_SINK_PAD (sink),
gst_pad_push_event (sinkpad,
gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, gst_structure_new_empty ("PexQosUnderflow")));
#else
gst_pad_push_event (GST_BASE_SINK_PAD (sink),
gst_pad_push_event (sinkpad,
gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, gst_structure_new_empty ("PexQosUnderflow")));
#endif
gst_object_unref(sinkpad);
}
}

Expand Down