mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
Fix compiler warnings under OS X.
This commit is contained in:
parent
6d1ceef3a4
commit
7c91fb4cf4
3 changed files with 7 additions and 7 deletions
|
@ -1240,8 +1240,7 @@ gst_ffmpegdec_negotiate (GstFFMpegDec * ffmpegdec, gboolean force)
|
||||||
no_caps:
|
no_caps:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (ffmpegdec, CORE, NEGOTIATION, (NULL),
|
GST_ELEMENT_ERROR (ffmpegdec, CORE, NEGOTIATION, (NULL),
|
||||||
("could not find caps for codec (%s), unknown type",
|
("could not find caps for codec (), unknown type"));
|
||||||
oclass->in_plugin->name));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
caps_failed:
|
caps_failed:
|
||||||
|
@ -1713,7 +1712,7 @@ gst_ffmpegdec_video_frame (GstFFMpegDec * ffmpegdec,
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (ffmpegdec, "ts-handler: pts %" G_GUINT64_FORMAT, out_pts);
|
GST_DEBUG_OBJECT (ffmpegdec, "ts-handler: pts %" G_GUINT64_FORMAT, out_pts);
|
||||||
GST_DEBUG_OBJECT (ffmpegdec, "picture: pts %" G_GUINT64_FORMAT,
|
GST_DEBUG_OBJECT (ffmpegdec, "picture: pts %" G_GUINT64_FORMAT,
|
||||||
ffmpegdec->picture->pts);
|
(guint64) ffmpegdec->picture->pts);
|
||||||
GST_DEBUG_OBJECT (ffmpegdec, "picture: num %d",
|
GST_DEBUG_OBJECT (ffmpegdec, "picture: num %d",
|
||||||
ffmpegdec->picture->coded_picture_number);
|
ffmpegdec->picture->coded_picture_number);
|
||||||
GST_DEBUG_OBJECT (ffmpegdec, "picture: ref %d",
|
GST_DEBUG_OBJECT (ffmpegdec, "picture: ref %d",
|
||||||
|
|
|
@ -1240,13 +1240,13 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
|
||||||
open_failed:
|
open_failed:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (demux, LIBRARY, FAILED, (NULL),
|
GST_ELEMENT_ERROR (demux, LIBRARY, FAILED, (NULL),
|
||||||
(gst_ffmpegdemux_averror (res)));
|
("%s", gst_ffmpegdemux_averror (res)));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
no_info:
|
no_info:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (demux, LIBRARY, FAILED, (NULL),
|
GST_ELEMENT_ERROR (demux, LIBRARY, FAILED, (NULL),
|
||||||
(gst_ffmpegdemux_averror (res)));
|
("%s", gst_ffmpegdemux_averror (res)));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1363,7 +1363,7 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux)
|
||||||
"pkt pts:%" GST_TIME_FORMAT
|
"pkt pts:%" GST_TIME_FORMAT
|
||||||
" / size:%d / stream_index:%d / flags:%d / duration:%" GST_TIME_FORMAT
|
" / size:%d / stream_index:%d / flags:%d / duration:%" GST_TIME_FORMAT
|
||||||
" / pos:%" G_GINT64_FORMAT, GST_TIME_ARGS (timestamp), pkt.size,
|
" / pos:%" G_GINT64_FORMAT, GST_TIME_ARGS (timestamp), pkt.size,
|
||||||
pkt.stream_index, pkt.flags, GST_TIME_ARGS (duration), pkt.pos);
|
pkt.stream_index, pkt.flags, GST_TIME_ARGS (duration), (gint64) pkt.pos);
|
||||||
|
|
||||||
/* check start_time */
|
/* check start_time */
|
||||||
if (demux->start_time != -1 && demux->start_time > timestamp)
|
if (demux->start_time != -1 && demux->start_time > timestamp)
|
||||||
|
|
|
@ -184,7 +184,8 @@ gst_ffmpegdata_seek (URLContext * h, int64_t pos, int whence)
|
||||||
GstProtocolInfo *info;
|
GstProtocolInfo *info;
|
||||||
guint64 newpos = 0;
|
guint64 newpos = 0;
|
||||||
|
|
||||||
GST_DEBUG ("Seeking to %" G_GINT64_FORMAT ", whence=%d", pos, whence);
|
GST_DEBUG ("Seeking to %" G_GINT64_FORMAT ", whence=%d",
|
||||||
|
(gint64) pos, whence);
|
||||||
|
|
||||||
info = (GstProtocolInfo *) h->priv_data;
|
info = (GstProtocolInfo *) h->priv_data;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue