GST_ASS_RENDER_LOCK (render);
- if (!render->attach_compo_to_buffer &&
- !gst_ass_render_can_handle_caps (caps)) {
+ if (!render->attach_compo_to_buffer && !gst_ass_render_can_handle_caps (caps)) {
GST_DEBUG_OBJECT (render, "unsupported caps %" GST_PTR_FORMAT, caps);
ret = FALSE;
}
return FALSE;
}
- res = curl_easy_setopt (basesink->curl, CURLOPT_POSTQUOTE, sink->headerlist);
+ res =
+ curl_easy_setopt (basesink->curl, CURLOPT_POSTQUOTE, sink->headerlist);
if (res != CURLE_OK) {
basesink->error = g_strdup_printf ("failed to set post quote: %s",
curl_easy_strerror (res));
return GST_FLOW_OK;
}
- GST_DEBUG_OBJECT (self, "received buffer from %s with length %" G_GSIZE_FORMAT,
+ GST_DEBUG_OBJECT (self,
+ "received buffer from %s with length %" G_GSIZE_FORMAT,
self->connection_id, gst_buffer_get_size (buffer));
buffer = gst_buffer_make_writable (buffer);
time = fragment->time + (fragment->duration * fragment->repetitions);
} else {
fragment = stream->current_fragment->data;
- time = fragment->time + (fragment->duration * stream->fragment_repetition_index);
+ time =
+ fragment->time +
+ (fragment->duration * stream->fragment_repetition_index);
}
timescale = gst_mss_stream_get_timescale (stream);
switch (prop_id) {
case PROP_MODE:
- {
- gint mode;
+ {
+ gint mode;
- GST_OBJECT_LOCK (filter);
- mode = g_value_get_enum (value);
+ GST_OBJECT_LOCK (filter);
+ mode = g_value_get_enum (value);
- if (mode != filter->mode) {
- GstGeometricTransform *gt;
+ if (mode != filter->mode) {
+ GstGeometricTransform *gt;
- gt = GST_GEOMETRIC_TRANSFORM_CAST (object);
- filter->mode = mode;
- gst_geometric_transform_set_need_remap (gt);
- }
-
- GST_OBJECT_UNLOCK (filter);
- break;
+ gt = GST_GEOMETRIC_TRANSFORM_CAST (object);
+ filter->mode = mode;
+ gst_geometric_transform_set_need_remap (gt);
}
+
+ GST_OBJECT_UNLOCK (filter);
+ break;
+ }
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
break;
case GST_EVENT_EOS:
- {
- GstFlowReturn res;
- /* Push pending buffers, if any */
- self->set_e_bit = TRUE;
- res = send_cached_buffer_and_events (self);
- if (res != GST_FLOW_OK) {
- drop = TRUE;
- ret = FALSE;
- goto out;
- }
- break;
+ {
+ GstFlowReturn res;
+ /* Push pending buffers, if any */
+ self->set_e_bit = TRUE;
+ res = send_cached_buffer_and_events (self);
+ if (res != GST_FLOW_OK) {
+ drop = TRUE;
+ ret = FALSE;
+ goto out;
}
+ break;
+ }
case GST_EVENT_FLUSH_STOP:
purge_cached_buffer_and_events (self);
self->set_d_bit = FALSE;