mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
Cleanup, fixed some bugs in the parsers, fixed memory leak (not all of them yet)
Original commit message from CVS: Cleanup, fixed some bugs in the parsers, fixed memory leak (not all of them yet)
This commit is contained in:
parent
38542a9c2d
commit
b797f15e3a
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,7 @@ void new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline) {
|
||||||
g_print("***** a new pad %s was created\n", gst_pad_get_name(pad));
|
g_print("***** a new pad %s was created\n", gst_pad_get_name(pad));
|
||||||
|
|
||||||
// connect to audio pad
|
// connect to audio pad
|
||||||
|
//if (0) {
|
||||||
if (strncmp(gst_pad_get_name(pad), "audio_", 6) == 0) {
|
if (strncmp(gst_pad_get_name(pad), "audio_", 6) == 0) {
|
||||||
// construct internal pipeline elements
|
// construct internal pipeline elements
|
||||||
parse_audio = gst_elementfactory_make("mp3parse","parse_audio");
|
parse_audio = gst_elementfactory_make("mp3parse","parse_audio");
|
||||||
|
@ -61,6 +62,7 @@ void new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline) {
|
||||||
g_print("setting to PLAYING state\n");
|
g_print("setting to PLAYING state\n");
|
||||||
gst_element_set_state(GST_ELEMENT(audio_thread),GST_STATE_PLAYING);
|
gst_element_set_state(GST_ELEMENT(audio_thread),GST_STATE_PLAYING);
|
||||||
} else if (strncmp(gst_pad_get_name(pad), "video_", 6) == 0) {
|
} else if (strncmp(gst_pad_get_name(pad), "video_", 6) == 0) {
|
||||||
|
//} else if (0) {
|
||||||
infopad = gst_pad_new("sink",GST_PAD_SINK);
|
infopad = gst_pad_new("sink",GST_PAD_SINK);
|
||||||
gst_pad_set_chain_function(infopad,mp1parse_info_chain);
|
gst_pad_set_chain_function(infopad,mp1parse_info_chain);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue