~ubuntu-branches/ubuntu/precise/gst-plugins-bad0.10/precise-proposed

« back to all changes in this revision

Viewing changes to ext/celt/gstceltenc.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-05-12 09:51:24 UTC
  • mto: (18.3.2 experimental) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: james.westby@ubuntu.com-20090512095124-ugy051q0n88kk9f8
Tags: upstream-0.10.11.2
Import upstream version 0.10.11.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
gst_celt_enc_setup_interfaces (GType celtenc_type)
107
107
{
108
108
  static const GInterfaceInfo tag_setter_info = { NULL, NULL, NULL };
 
109
  const GInterfaceInfo preset_interface_info = {
 
110
    NULL,                       /* interface_init */
 
111
    NULL,                       /* interface_finalize */
 
112
    NULL                        /* interface_data */
 
113
  };
109
114
 
110
115
  g_type_add_interface_static (celtenc_type, GST_TYPE_TAG_SETTER,
111
116
      &tag_setter_info);
 
117
  g_type_add_interface_static (celtenc_type, GST_TYPE_PRESET,
 
118
      &preset_interface_info);
112
119
 
113
120
  GST_DEBUG_CATEGORY_INIT (celtenc_debug, "celtenc", 0, "Celt encoder");
114
121
}
738
745
 
739
746
    GST_DEBUG_OBJECT (enc, "encoding %d samples (%d bytes)", frame_size, bytes);
740
747
 
741
 
    outsize =
742
 
        celt_encode (enc->state, data, GST_BUFFER_DATA (outbuf),
743
 
        bytes_per_packet);
 
748
#ifdef HAVE_CELT_0_4
 
749
    outsize =
 
750
        celt_encode (enc->state, data,
 
751
        GST_BUFFER_DATA (outbuf), bytes_per_packet);
 
752
#else
 
753
    outsize =
 
754
        celt_encode (enc->state, data, NULL,
 
755
        GST_BUFFER_DATA (outbuf), bytes_per_packet);
 
756
#endif
744
757
 
745
758
    g_free (data);
746
759