Fix compiler warnings under OS X.
authorAlessandro Decina <alessandro.d@gmail.com>
Fri, 22 Jan 2010 10:43:39 +0000 (11:43 +0100)
committerAlessandro Decina <alessandro.d@gmail.com>
Fri, 22 Jan 2010 10:43:59 +0000 (11:43 +0100)
ext/ffmpeg/gstffmpegdec.c
ext/ffmpeg/gstffmpegdemux.c
ext/ffmpeg/gstffmpegprotocol.c

index 37cd48b75c17d6ef8776de5be3d648a716ef4893..b20cc975cf69a8ca67085e605368120296a384cb 100644 (file)
@@ -1240,8 +1240,7 @@ gst_ffmpegdec_negotiate (GstFFMpegDec * ffmpegdec, gboolean force)
 no_caps:
   {
     GST_ELEMENT_ERROR (ffmpegdec, CORE, NEGOTIATION, (NULL),
-        ("could not find caps for codec (%s), unknown type",
-            oclass->in_plugin->name));
+        ("could not find caps for codec (), unknown type"));
     return FALSE;
   }
 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, "picture: pts %" G_GUINT64_FORMAT,
-      ffmpegdec->picture->pts);
+      (guint64) ffmpegdec->picture->pts);
   GST_DEBUG_OBJECT (ffmpegdec, "picture: num %d",
       ffmpegdec->picture->coded_picture_number);
   GST_DEBUG_OBJECT (ffmpegdec, "picture: ref %d",
index 80880be288201f36de845a7ca2057f7a579c962f..4c32ea2d9e139e36ed7da64afb7c8c6511af509e 100644 (file)
@@ -1240,13 +1240,13 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
 open_failed:
   {
     GST_ELEMENT_ERROR (demux, LIBRARY, FAILED, (NULL),
-        (gst_ffmpegdemux_averror (res)));
+        ("%s", gst_ffmpegdemux_averror (res)));
     return FALSE;
   }
 no_info:
   {
     GST_ELEMENT_ERROR (demux, LIBRARY, FAILED, (NULL),
-        (gst_ffmpegdemux_averror (res)));
+        ("%s", gst_ffmpegdemux_averror (res)));
     return FALSE;
   }
 }
@@ -1363,7 +1363,7 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux)
       "pkt pts:%" GST_TIME_FORMAT
       " / size:%d / stream_index:%d / flags:%d / duration:%" GST_TIME_FORMAT
       " / 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 */
   if (demux->start_time != -1 && demux->start_time > timestamp)
index 6134a3a69703545f29cbff7cbfb218ebae229097..f46ac286c831e0c495ad12060e7fea8584a75d5d 100644 (file)
@@ -184,7 +184,8 @@ gst_ffmpegdata_seek (URLContext * h, int64_t pos, int whence)
   GstProtocolInfo *info;
   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;