compatibility fix for new GST_DEBUG stuff.

Original commit message from CVS:
compatibility fix for new GST_DEBUG stuff.
Includes fixes for missing includes for config.h and unistd.h

I only ensured for plugins I can build that they work, so if some of them are still broken, you gotta fix them yourselves unfortunately.
This commit is contained in:
Benjamin Otte 2003-06-29 19:45:00 +00:00
parent e0b4b32a8e
commit 4c1d919cbf
5 changed files with 8 additions and 8 deletions

2
common

@ -1 +1 @@
Subproject commit 9a3a505fcc52865de0bedbb3ee1ce0a6dcc9a025
Subproject commit 2a3efdc282fb1ecfd2720dea40523b3441f10fed

View file

@ -204,7 +204,7 @@ gst_ffmpegdec_connect (GstPad *pad,
* simply because we don't know! We only get it
* during playback... */
if (avcodec_open (ffmpegdec->context, oclass->in_plugin) < 0) {
GST_DEBUG (GST_CAT_PLUGIN_INFO,
GST_DEBUG (
"ffdec_%s: Failed to open FFMPEG codec",
oclass->in_plugin->name);
return GST_PAD_LINK_REFUSED;

View file

@ -297,7 +297,7 @@ gst_ffmpegdemux_loop (GstElement *element)
caps = gst_ffmpeg_codecid_to_caps (st->codec.codec_id,
&st->codec);
if (gst_pad_try_set_caps (pad, caps) <= 0) {
GST_DEBUG (GST_CAT_PLUGIN_ERRORS,
GST_DEBUG (
"Failed to set caps from ffdemuxer on next element");
/* we continue here, in the next pad-is-usable check,
* we'll return nonetheless */

View file

@ -300,7 +300,7 @@ gst_ffmpegenc_connect (GstPad *pad,
/* open codec */
if (avcodec_open (ffmpegenc->context, oclass->in_plugin) < 0) {
GST_DEBUG (GST_CAT_PLUGIN_INFO,
GST_DEBUG (
"ffenc_%s: Failed to open FFMPEG codec",
oclass->in_plugin->name);
continue;
@ -318,14 +318,14 @@ gst_ffmpegenc_connect (GstPad *pad,
ffmpegenc->context);
if (!ret_caps) {
avcodec_close (ffmpegenc->context);
GST_DEBUG (GST_CAT_PLUGIN_INFO,
GST_DEBUG (
"Unsupported codec - no caps found");
return GST_PAD_LINK_REFUSED;
}
if ((ret = gst_pad_try_set_caps (ffmpegenc->srcpad, ret_caps)) <= 0) {
avcodec_close (ffmpegenc->context);
GST_DEBUG (GST_CAT_PLUGIN_INFO,
GST_DEBUG (
"Failed to set caps on next element for ffmpeg encoder (%s)",
oclass->in_plugin->name);
return ret;

View file

@ -222,7 +222,7 @@ gst_ffmpegmux_request_new_pad (GstElement *element,
ffmpegmux->context->streams[padnum] = st;
/* we love debug output (c) (tm) (r) */
GST_DEBUG (GST_CAT_PLUGIN_INFO,
GST_DEBUG (
"Created %s pad for ffmux_%s element",
padname, oclass->in_plugin->name);
g_free (padname);
@ -283,7 +283,7 @@ gst_ffmpegmux_loop (GstElement *element)
/* check whether the pad has successfully completed capsnego */
if (st->codec.codec_id == CODEC_ID_NONE) {
GST_DEBUG (GST_CAT_PLUGIN_INFO,
GST_DEBUG (
"ffmux loop function called without capsnego on pad %d",
i);
return;