diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog.txt | 6 | ||||
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 1844521..0a3a9be 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,3 +1,9 @@ | |||
1 | 2009-03-27 McCabe Maxsted <hakushakukun@gmail.com> | ||
2 | |||
3 | * linden/indra/llmedia/llmediaimplgstreamer.cpp: | ||
4 | Fixed video streams freezing the viewer. | ||
5 | |||
6 | |||
1 | 2009-03-26 Jacek Antonelli <jacek.antonelli@gmail.com> | 7 | 2009-03-26 Jacek Antonelli <jacek.antonelli@gmail.com> |
2 | 8 | ||
3 | * linden/indra/llmedia/llmediaimplgstreamervidplug.cpp: | 9 | * linden/indra/llmedia/llmediaimplgstreamervidplug.cpp: |
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 98d6459..e38dc29 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp | |||
@@ -582,7 +582,7 @@ bool LLMediaImplGStreamer::stop() | |||
582 | else | 582 | else |
583 | mState = GST_STATE_READY; | 583 | mState = GST_STATE_READY; |
584 | 584 | ||
585 | GstStateChangeReturn state_change = gst_element_get_state(mPlaybin, NULL, NULL, GST_CLOCK_TIME_NONE); | 585 | GstStateChangeReturn state_change = gst_element_get_state(mPlaybin, NULL, NULL, GST_MSECOND*5); |
586 | LL_DEBUGS("MediaImpl") << "get_state: " << gst_element_state_change_return_get_name(state_change) << LL_ENDL; | 586 | LL_DEBUGS("MediaImpl") << "get_state: " << gst_element_state_change_return_get_name(state_change) << LL_ENDL; |
587 | 587 | ||
588 | return true; | 588 | return true; |
@@ -605,7 +605,7 @@ bool LLMediaImplGStreamer::play() | |||
605 | /*gst_element_set_state(mPlaybin, GST_STATE_PLAYING); | 605 | /*gst_element_set_state(mPlaybin, GST_STATE_PLAYING); |
606 | mState = GST_STATE_PLAYING;*/ | 606 | mState = GST_STATE_PLAYING;*/ |
607 | 607 | ||
608 | GstStateChangeReturn state_change = gst_element_get_state(mPlaybin, NULL, NULL, GST_CLOCK_TIME_NONE); | 608 | GstStateChangeReturn state_change = gst_element_get_state(mPlaybin, NULL, NULL, GST_MSECOND*5); |
609 | LL_DEBUGS("MediaImpl") << "get_state: " << gst_element_state_change_return_get_name(state_change) << LL_ENDL; | 609 | LL_DEBUGS("MediaImpl") << "get_state: " << gst_element_state_change_return_get_name(state_change) << LL_ENDL; |
610 | 610 | ||
611 | // Check to make sure playing was successful. If not, stop. | 611 | // Check to make sure playing was successful. If not, stop. |
@@ -630,7 +630,7 @@ bool LLMediaImplGStreamer::pause() | |||
630 | gst_element_set_state(mPlaybin, GST_STATE_PAUSED); | 630 | gst_element_set_state(mPlaybin, GST_STATE_PAUSED); |
631 | mState = GST_STATE_PAUSED; | 631 | mState = GST_STATE_PAUSED; |
632 | 632 | ||
633 | GstStateChangeReturn state_change = gst_element_get_state(mPlaybin, NULL, NULL, GST_CLOCK_TIME_NONE); | 633 | GstStateChangeReturn state_change = gst_element_get_state(mPlaybin, NULL, NULL, GST_MSECOND*5); |
634 | LL_DEBUGS("MediaImpl") << "get_state: " << gst_element_state_change_return_get_name(state_change) << LL_ENDL; | 634 | LL_DEBUGS("MediaImpl") << "get_state: " << gst_element_state_change_return_get_name(state_change) << LL_ENDL; |
635 | 635 | ||
636 | return true; | 636 | return true; |