~ubuntu-branches/ubuntu/raring/gst-plugins-good0.10/raring-proposed

« back to all changes in this revision

Viewing changes to gst/isomp4/gstqtmux.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-02-09 16:44:53 UTC
  • mfrom: (40.2.38 experimental)
  • Revision ID: package-import@ubuntu.com-20120209164453-6hjokwrvdn42zopb
Tags: 0.10.30.3-1ubuntu1
* Merge from Debian experimental, remaining changes:
  - 04_move_farsight_plugins_to_good.patch
    Import autoconvert, dtmf, liveadder, rptmux from -plugins-bad
  - 05_move_shm_to_good.patch
    Import shm from -plugins-bad.
  - 07_move-camerabin.patch
    Import camerabin, camerabin2, jpegformat and basecamerabinsrc
    from -plugins-bad.
  - control*:
    * Drop dependency from gstreamer0.10-plugins-good on
      gstreamer0.10-gconf. It pulls gconf and gtk3 onto the Kubuntu cd.
    * Use Breaks instead of Conflicts.
    * Add a 'Pre-Depends: ${misc:Pre-Depends}' to the plugin package,
      since we're shipping shared libraries in the package that Debian
      isn't.
* Update the patches by pulling new version of the code from
  -plugins-bad 0.10.22.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1476
1476
  GstStructure *structure;
1477
1477
  GValue array = { 0 };
1478
1478
  GValue value = { 0 };
1479
 
  GstCaps *caps = GST_PAD_CAPS (mux->srcpad);
 
1479
  GstCaps *caps;
1480
1480
 
1481
1481
  caps = gst_caps_copy (GST_PAD_CAPS (mux->srcpad));
1482
1482
  structure = gst_caps_get_structure (caps, 0);
2619
2619
  AtomInfo *ext_atom = NULL;
2620
2620
  gint constant_size = 0;
2621
2621
  const gchar *stream_format;
2622
 
  GstCaps *current_caps = NULL;
2623
2622
 
2624
2623
  /* find stream data */
2625
2624
  qtpad = (GstQTPad *) gst_pad_get_element_private (pad);
2631
2630
   * the old caps are a subset of the new one (this means upstream
2632
2631
   * added more info to the caps, as both should be 'fixed' caps) */
2633
2632
  if (qtpad->fourcc) {
 
2633
    GstCaps *current_caps = NULL;
 
2634
    gboolean is_subset;
2634
2635
    g_object_get (pad, "caps", &current_caps, NULL);
2635
2636
    g_assert (caps != NULL);
2636
2637
 
2637
 
    if (!gst_qtmux_caps_is_subset_full (qtmux, current_caps, caps)) {
 
2638
    is_subset = gst_qtmux_caps_is_subset_full (qtmux, current_caps, caps);
 
2639
    gst_caps_unref (current_caps);
 
2640
    if (!is_subset) {
2638
2641
      goto refuse_renegotiation;
2639
2642
    }
2640
2643
    GST_DEBUG_OBJECT (qtmux,
2941
2944
  GList *ext_atom_list = NULL;
2942
2945
  gboolean sync = FALSE;
2943
2946
  int par_num, par_den;
2944
 
  GstCaps *current_caps = NULL;
2945
2947
 
2946
2948
  /* find stream data */
2947
2949
  qtpad = (GstQTPad *) gst_pad_get_element_private (pad);
2953
2955
   * the old caps are a subset of the new one (this means upstream
2954
2956
   * added more info to the caps, as both should be 'fixed' caps) */
2955
2957
  if (qtpad->fourcc) {
 
2958
    GstCaps *current_caps = NULL;
 
2959
    gboolean is_subset;
2956
2960
    g_object_get (pad, "caps", &current_caps, NULL);
2957
2961
    g_assert (caps != NULL);
2958
2962
 
2959
 
    if (!gst_qtmux_caps_is_subset_full (qtmux, current_caps, caps)) {
 
2963
    is_subset = gst_qtmux_caps_is_subset_full (qtmux, current_caps, caps);
 
2964
    gst_caps_unref (current_caps);
 
2965
    if (!is_subset) {
2960
2966
      goto refuse_renegotiation;
2961
2967
    }
2962
2968
    GST_DEBUG_OBJECT (qtmux,