}
if (easy) {
curl_easy_getinfo (easy, CURLINFO_EFFECTIVE_URL, &eff_url);
- GST_DEBUG ("transfer done %s (%s-%d)\n", eff_url,
+ GST_DEBUG ("transfer done %s (%s-%d)", eff_url,
curl_easy_strerror (code), code);
}
} while (easy);
s->buffer =
g_realloc (s->buffer, (s->buffer_len + chunk_len + 1) * sizeof (char));
if (s->buffer == NULL) {
- GST_ERROR_OBJECT (s, "Realloc for cURL response message failed!\n");
+ GST_ERROR_OBJECT (s, "Realloc for cURL response message failed!");
return 0;
}
memcpy (s->buffer + s->buffer_len, chunk, chunk_len);
err = aacEncOpen (&self->enc, 0, GST_AUDIO_INFO_CHANNELS (info));
if (err != AACENC_OK) {
- GST_ERROR_OBJECT (self, "Unable to open encoder: %d\n", err);
+ GST_ERROR_OBJECT (self, "Unable to open encoder: %d", err);
return FALSE;
}
aot = AOT_AAC_LC;
if ((err = aacEncoder_SetParam (self->enc, AACENC_AOT, aot)) != AACENC_OK) {
- GST_ERROR_OBJECT (self, "Unable to set AOT %d: %d\n", aot, err);
+ GST_ERROR_OBJECT (self, "Unable to set AOT %d: %d", aot, err);
return FALSE;
}
if ((err = aacEncoder_SetParam (self->enc, AACENC_SAMPLERATE,
GST_AUDIO_INFO_RATE (info))) != AACENC_OK) {
- GST_ERROR_OBJECT (self, "Unable to set sample rate %d: %d\n",
+ GST_ERROR_OBJECT (self, "Unable to set sample rate %d: %d",
GST_AUDIO_INFO_RATE (info), err);
return FALSE;
}
#define GST_KATE_TIGER_MUTEX_LOCK(element) \
do { \
- /*GST_LOG_OBJECT ((element), "locking from %s:%d\n",__FILE__,__LINE__);*/ \
+ /*GST_LOG_OBJECT ((element), "locking from %s:%d",__FILE__,__LINE__);*/ \
g_mutex_lock ((element)->mutex); \
- /*GST_LOG_OBJECT ((element), "ready from %s:%d\n",__FILE__,__LINE__);*/ \
+ /*GST_LOG_OBJECT ((element), "ready from %s:%d",__FILE__,__LINE__);*/ \
} while(0)
#define GST_KATE_TIGER_MUTEX_UNLOCK(element) \
do { \
- /*GST_LOG_OBJECT ((element), "unlocking from %s:%d\n",__FILE__,__LINE__);*/ \
+ /*GST_LOG_OBJECT ((element), "unlocking from %s:%d",__FILE__,__LINE__);*/ \
g_mutex_unlock ((element)->mutex); \
} while(0)
GST_ELEMENT_ERROR (src, RESOURCE, READ,
(NULL), ("Server certificate signer not trusted"));
- GST_DEBUG_OBJECT (src, "failures: %d\n", failures);
+ GST_DEBUG_OBJECT (src, "failures: %d", failures);
return failures;
}
Point c;
if (filter->display) {
- GST_DEBUG_OBJECT (filter, "%d PALM gestures detected\n",
+ GST_DEBUG_OBJECT (filter, "%d PALM gestures detected",
(int) hands.size ());
}
/* Go through all detected PALM gestures to get the best one
if (src->depth->isValid ()) {
rc = src->depth->start ();
if (rc != openni::STATUS_OK) {
- GST_ERROR_OBJECT (src, "Couldn't start the depth stream\n%s\n",
+ GST_ERROR_OBJECT (src, "Couldn't start the depth stream: %s",
openni::OpenNI::getExtendedError ());
return FALSE;
}
if (src->color->isValid ()) {
rc = src->color->start ();
if (rc != openni::STATUS_OK) {
- GST_ERROR_OBJECT (src, "Couldn't start the color stream\n%s\n",
+ GST_ERROR_OBJECT (src, "Couldn't start the color stream: %s",
openni::OpenNI::getExtendedError ());
return FALSE;
}
}
if (!src->depth->isValid () && !src->color->isValid ()) {
- GST_ERROR_OBJECT (src, "No valid streams. Exiting\n");
+ GST_ERROR_OBJECT (src, "No valid streams. Exiting");
openni::OpenNI::shutdown ();
return FALSE;
}
datalen--;
} else {
/* Data byte wasn't recognised as a flags byte */
- GST_DEBUG ("Unrecognised flags byte 0x%02x\n", *data);
+ GST_DEBUG ("Unrecognised flags byte 0x%02x", *data);
goto lost_sync;
}
bpm, (void *) NULL);
gst_pad_push_event (trans->srcpad, gst_event_new_tag (tags));
- GST_INFO_OBJECT (bpm_detect, "Detected BPM: %lf\n", bpm);
+ GST_INFO_OBJECT (bpm_detect, "Detected BPM: %lf", bpm);
bpm_detect->bpm = bpm;
}
data_unit = packet + *offset;
data_unit_id = data_unit[0];
data_unit_length = data_unit[1];
- GST_LOG_OBJECT (teletext, "vbi header %02x %02x %02x\n", data_unit[0],
+ GST_LOG_OBJECT (teletext, "vbi header %02x %02x %02x", data_unit[0],
data_unit[1], data_unit[2]);
switch (data_unit_id) {
g_strdup_printf ("Error from element %s: %s\n%s", name, message,
err->message);
- GST_ERROR_OBJECT (self, "ERROR: from element %s: %s\n", name, err->message);
+ GST_ERROR_OBJECT (self, "ERROR: from element %s: %s", name, err->message);
if (debug != NULL)
- GST_ERROR_OBJECT (self, "Additional debug info:\n%s\n", debug);
+ GST_ERROR_OBJECT (self, "Additional debug info: %s", debug);
player_err =
g_error_new_literal (GST_PLAYER_ERROR, GST_PLAYER_ERROR_FAILED,
g_strdup_printf ("Warning from element %s: %s\n%s", name, message,
err->message);
- GST_WARNING_OBJECT (self, "WARNING: from element %s: %s\n", name,
- err->message);
+ GST_WARNING_OBJECT (self, "WARNING: from element %s: %s", name, err->message);
if (debug != NULL)
- GST_WARNING_OBJECT (self, "Additional debug info:\n%s\n", debug);
+ GST_WARNING_OBJECT (self, "Additional debug info: %s", debug);
player_err =
g_error_new_literal (GST_PLAYER_ERROR, GST_PLAYER_ERROR_FAILED,
g_strdup_printf ("Warning from element %s: %s\n%s", name, message,
err->message);
- GST_WARNING_OBJECT (self, "WARNING: from element %s: %s\n", name,
- err->message);
+ GST_WARNING_OBJECT (self, "WARNING: from element %s: %s", name, err->message);
if (debug != NULL)
- GST_WARNING_OBJECT (self, "Additional debug info:\n%s\n", debug);
+ GST_WARNING_OBJECT (self, "Additional debug info: %s", debug);
transcoder_err =
g_error_new_literal (GST_TRANSCODER_ERROR, GST_TRANSCODER_ERROR_FAILED,
GST_WARNING_OBJECT (downloader,
"Received error: %s from %s, the download will be cancelled",
err->message, GST_OBJECT_NAME (message->src));
- GST_DEBUG ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
+ GST_DEBUG ("Debugging info: %s", (dbg_info) ? dbg_info : "none");
if (dbg_info)
new_error = g_strdup_printf ("%s: %s\n", err->message, dbg_info);
GST_WARNING_OBJECT (downloader,
"Received warning: %s from %s",
GST_OBJECT_NAME (message->src), err->message);
- GST_DEBUG ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
+ GST_DEBUG ("Debugging info: %s", (dbg_info) ? dbg_info : "none");
g_error_free (err);
g_free (dbg_info);
} else if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_NEED_CONTEXT) {
GstVulkanWindowCocoaPrivate *priv = GET_PRIV (window_cocoa);
GstVulkanNSWindow *internal_win_id = (__bridge GstVulkanNSWindow *)priv->internal_win_id;
- GST_DEBUG ("user clicked the close button\n");
+ GST_DEBUG ("user clicked the close button");
[internal_win_id setClosed];
return YES;
}
tags = gst_tag_list_new (GST_TAG_ACCURIP_CRC, accurip->crc,
GST_TAG_ACCURIP_CRC_V2, accurip->crc_v2, NULL);
- GST_DEBUG_OBJECT (accurip, "Computed CRC=%08X and CRCv2=0x%08X \n",
+ GST_DEBUG_OBJECT (accurip, "Computed CRC=%08X and CRCv2=0x%08X",
accurip->crc, accurip->crc_v2);
gst_pad_push_event (GST_BASE_TRANSFORM_SRC_PAD (accurip),
if (strstr (klass, "Filter") &&
strstr (klass, "Converter") && strstr (klass, "Video")) {
GST_DEBUG_OBJECT (autovideoconvert,
- "gst_auto_video_convert_element_filter found %s\n",
+ "gst_auto_video_convert_element_filter found %s",
gst_plugin_feature_get_name (GST_PLUGIN_FEATURE_CAST (feature)));
return TRUE;
}
datalen--;
} else {
/* Data byte wasn't recognised as a flags byte */
- GST_DEBUG ("Unrecognised flags byte 0x%02x\n", *data);
+ GST_DEBUG ("Unrecognised flags byte 0x%02x", *data);
goto lost_sync;
}
read = handler (dec, &r, data + offset + 12, len - offset - 12, decode);
if (read < 0) {
- GST_DEBUG_OBJECT (dec, "Error calling rectangle handler\n");
+ GST_DEBUG_OBJECT (dec, "Error calling rectangle handler");
return read;
}
offset += 12 + read;
FrameInfo.FourCC);
if (format == GST_VIDEO_FORMAT_UNKNOWN) {
- GST_WARNING_OBJECT (thiz, "Failed to find a valid video format\n");
+ GST_WARNING_OBJECT (thiz, "Failed to find a valid video format");
return FALSE;
}
current_sample->host_ts, GST_TIME_ARGS (current_sample->host_ts));
GST_DEBUG_OBJECT (self, "host_sof: %u", sample.host_sof);
GST_DEBUG_OBJECT (self, "PTS: %u", pts);
- GST_DEBUG_OBJECT (self, "Diff: %u - %f\n", sample.dev_stc - pts,
+ GST_DEBUG_OBJECT (self, "Diff: %u - %f", sample.dev_stc - pts,
(gdouble) (sample.dev_stc - pts) / sample.dev_frequency);
}
}
g_string_append (s, "\r\n");
- GST_DEBUG ("Response headers: %lu\n%s\n********\n", s->len, s->str);
+ GST_DEBUG ("Response headers: %lu\n%s\n********", s->len, s->str);
g_output_stream_write_all (out, s->str, s->len, &written, NULL, NULL);
fail_if (written != s->len);
g_string_free (s, TRUE);
fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
gst_message_parse_error (msg, &err, &dbg_info);
- GST_DEBUG ("Error from element %s : %s\n",
+ GST_DEBUG ("Error from element %s : %s",
GST_OBJECT_NAME (msg->src), err->message);
fail_unless_equals_string (GST_OBJECT_NAME (msg->src), DEMUX_ELEMENT_NAME);
g_error_free (err);
fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
gst_message_parse_error (msg, &err, &dbg_info);
- GST_DEBUG ("Error from element %s : %s\n",
+ GST_DEBUG ("Error from element %s : %s",
GST_OBJECT_NAME (msg->src), err->message);
fail_unless_equals_string (GST_OBJECT_NAME (msg->src), DEMUX_ELEMENT_NAME);
g_error_free (err);
fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
gst_message_parse_error (msg, &err, &dbg_info);
- GST_DEBUG ("Error from element %s : %s\n",
+ GST_DEBUG ("Error from element %s : %s",
GST_OBJECT_NAME (msg->src), err->message);
fail_unless_equals_string (GST_OBJECT_NAME (msg->src), DEMUX_ELEMENT_NAME);
- /*GST_DEBUG ("dbg_info=%s\n", dbg_info); */
+ /*GST_DEBUG ("dbg_info=%s", dbg_info); */
g_error_free (err);
g_free (dbg_info);
g_main_loop_quit (engine->loop);
}
gst_message_parse_error (msg, &err, &dbg_info);
- GST_WARNING ("ERROR from element %s: %s\n",
+ GST_WARNING ("ERROR from element %s: %s",
GST_OBJECT_NAME (msg->src), err->message);
- GST_WARNING ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
+ GST_WARNING ("Debugging info: %s", (dbg_info) ? dbg_info : "none");
g_error_free (err);
g_free (dbg_info);
test_webrtc_signal_state_unlocked (t, STATE_ERROR);
GST_DEBUG_GRAPH_SHOW_ALL, dump_name);
g_free (dump_name);
}
- GST_INFO ("EOS received\n");
+ GST_INFO ("EOS received");
test_webrtc_signal_state_unlocked (t, STATE_EOS);
break;
}
* fit within the output video size without any cropping */
gst_video_sink_center_rect (item->video_irect, item->app->video_orect,
&item->video_orect, TRUE);
- GST_DEBUG ("%s: w: %i, h: %i, x: %i, y: %i\n", item->fn,
+ GST_DEBUG ("%s: w: %i, h: %i, x: %i, y: %i", item->fn,
item->video_orect.w, item->video_orect.h, item->video_orect.x,
item->video_orect.y);
g_object_set (sinkpad, "width", item->video_orect.w, "height",