gst/quicktime/gstqtmux.c: Quiet a debugging message that I recently added.
authorDavid Schleef <ds@schleef.org>
Tue, 18 Nov 2008 01:09:09 +0000 (01:09 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 12 Apr 2011 19:32:10 +0000 (20:32 +0100)
Original commit message from CVS:
* gst/quicktime/gstqtmux.c: Quiet a debugging message that I recently
added.

gst/quicktime/gstqtmux.c

index 2a6b792..f123250 100644 (file)
@@ -1044,7 +1044,7 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
         atom_trak_get_timescale (pad->trak), GST_SECOND);
     pts_offset = (gint64) (pts - last_dts);
     do_pts = TRUE;
-    GST_ERROR_OBJECT (qtmux, "Adding ctts entry for pad %s: %" G_GINT64_FORMAT,
+    GST_LOG_OBJECT (qtmux, "Adding ctts entry for pad %s: %" G_GINT64_FORMAT,
         GST_PAD_NAME (pad->collect.pad), pts_offset);
   }
 
@@ -1384,6 +1384,7 @@ gst_qt_mux_video_sink_set_caps (GstPad * pad, GstCaps * caps)
   GstQTMuxFormat format;
   AtomInfo *ext_atom = NULL;
   gboolean sync = FALSE;
+  int par_num, par_den;
 
   /* find stream data */
   qtpad = (GstQTPad *) gst_pad_get_element_private (pad);
@@ -1417,6 +1418,10 @@ gst_qt_mux_video_sink_set_caps (GstPad * pad, GstCaps * caps)
   if (value != NULL)
     codec_data = gst_value_get_buffer (value);
 
+  par_num = 1;
+  par_den = 1;
+  gst_structure_get_fraction (structure, "pixel-aspect-ratio", &par_num,
+      &par_den);
   /* FIXME: pixel-aspect-ratio */
 
   qtpad->is_out_of_order = FALSE;