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

« back to all changes in this revision

Viewing changes to gst/audioparsers/gstbaseparse.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2011-03-07 09:16:53 UTC
  • mfrom: (18.3.21 experimental)
  • Revision ID: james.westby@ubuntu.com-20110307091653-byfee32d39q0c5d4
Tags: 0.10.21-1ubuntu1
* Merge with Debian; remaining changes.
  - Remove plugins that are now provided -good in
    debian/gstreamer-plugins-bad.install:
    - libgstautoconvert.so
    - libgstdtmf.so
    - libgstliveadder.so
    - libgstrtpmux.so
  - Revert enabling of libgstlv2 -- drop lv2core, libslv2-dev from
    debian/build-deps.in and remove libgstlv2 from
    debian/gstreamer-plugins-bad.install.  This plugin segfaults on amd64
    and is too unstable for now. the bug requesting this was LP #511334 and
    the instability statement is at LP #513347. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
738
738
 *
739
739
 * Element-level event handler function.
740
740
 *
741
 
 * Returns: TRUE if the event was handled and not need forwarding.
 
741
 * The event will be unreffed only if it has been handled and this
 
742
 * function returns %TRUE
 
743
 *
 
744
 * Returns: %TRUE if the event was handled and not need forwarding.
742
745
 */
743
746
static gboolean
744
747
gst_base_parse_sink_eventfunc (GstBaseParse * parse, GstEvent * event)
858
861
 
859
862
    case GST_EVENT_FLUSH_START:
860
863
      parse->priv->flushing = TRUE;
861
 
      handled = gst_pad_push_event (parse->srcpad, event);
 
864
      handled = gst_pad_push_event (parse->srcpad, gst_event_ref (event));
 
865
      if (handled)
 
866
        gst_event_unref (event);
862
867
      /* Wait for _chain() to exit by taking the srcpad STREAM_LOCK */
863
868
      GST_PAD_STREAM_LOCK (parse->srcpad);
864
869
      GST_PAD_STREAM_UNLOCK (parse->srcpad);
2590
2595
}
2591
2596
 
2592
2597
/**
2593
 
 * gst_base_transform_set_passthrough:
2594
 
 * @trans: the #GstBaseParse to set
 
2598
 * gst_base_parse_set_passthrough:
 
2599
 * @parse: the #GstBaseParse to set
2595
2600
 * @passthrough: boolean indicating passthrough mode.
2596
2601
 *
2597
2602
 * Set passthrough mode for this parser.  If operating in passthrough,
2609
2614
}
2610
2615
 
2611
2616
/**
2612
 
 * gst_base_transform_set_frame_props:
 
2617
 * gst_base_parse_set_frame_props:
2613
2618
 * @parse: the #GstBaseParse to set
2614
2619
 * @fps_num: frames per second (numerator).
2615
2620
 * @fps_den: frames per second (denominator).
2658
2663
}
2659
2664
 
2660
2665
/**
2661
 
 * gst_base_transform_get_sync:
 
2666
 * gst_base_parse_get_sync:
2662
2667
 * @parse: the #GstBaseParse to query
2663
2668
 *
2664
2669
 * Returns: TRUE if parser is considered 'in sync'.  That is, frames have been
2681
2686
}
2682
2687
 
2683
2688
/**
2684
 
 * gst_base_transform_get_drain:
 
2689
 * gst_base_parse_get_drain:
2685
2690
 * @parse: the #GstBaseParse to query
2686
2691
 *
2687
2692
 * Returns: TRUE if parser is currently 'draining'.  That is, leftover data