~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty

« back to all changes in this revision

Viewing changes to gst/gstsample.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-09-14 09:04:41 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120914090441-1ul912ezvm3xfael
Tags: 0.11.94-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.
  + debian/control.in:
    - Build-depend on gtk-doc >= 1.12.
  + debian/patches/0001-netclientclock-simplify-by-using-g_socket_condition_.patch:
    - Dropped, merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  GstSample *copy;
60
60
 
61
61
  copy = gst_sample_new (sample->buffer, sample->caps, &sample->segment,
62
 
      gst_structure_copy (sample->info));
 
62
      (sample->info) ? gst_structure_copy (sample->info) : NULL);
63
63
 
64
64
  return copy;
65
65
}
73
73
    gst_buffer_unref (sample->buffer);
74
74
  if (sample->caps)
75
75
    gst_caps_unref (sample->caps);
76
 
 
 
76
  if (sample->info) {
 
77
    gst_structure_set_parent_refcount (sample->info, NULL);
 
78
    gst_structure_free (sample->info);
 
79
  }
77
80
  g_slice_free1 (sizeof (GstSample), sample);
78
81
}
79
82